Handle join auto complete error and update formatting

This commit is contained in:
Logan Cusano
2024-08-04 16:01:59 -04:00
parent b51300d878
commit a7d1f4e6b4

View File

@@ -32,9 +32,14 @@ export async function autocomplete(nodeIo, interaction) {
log.DEBUG(focusedValue, choices, filtered);
await interaction.respond(
filtered.map(choice => ({ name: choice.name, value: choice.name }))
);
try {
await interaction.respond(
filtered.map(choice => ({ name: choice.name, value: choice.name }))
);
}
catch (e) {
log.WARN("Autocomplete interaction failure", e);
}
}
/**