Handle join auto complete error and update formatting
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user