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);
|
log.DEBUG(focusedValue, choices, filtered);
|
||||||
|
|
||||||
await interaction.respond(
|
try {
|
||||||
filtered.map(choice => ({ name: choice.name, value: choice.name }))
|
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