mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: added minimum character limit to clan autocomplete
This commit is contained in:
1 parent
92761f2c55
commit
b455e3380f
1 file changed
+1
@@ -11,6 +11,7 @@ export default async function autocompleteClan(
|
||||
) {
|
||||
const focusedOption = interaction.options.getFocused(true);
|
||||
if (focusedOption.name !== 'clan') return;
|
||||
if (focusedOption.value.length < 2) return interaction.respond([]);
|
||||
const players = await listClans(focusedOption.value);
|
||||
|
||||
await interaction.respond(
|
||||
|
||||
Reference in new issue
Block a user