Autocomplete - don't start until X characters have been entered?
Is there a way to prevent the autocomplete from returning values until at least X length of characters have been provided? I am allowing the user to search through many items, and it seems silly to start populating the results when 0 characters have been entered.
Discord.js v13.10.3
Node.js v18.6.0
2 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.You can try checking if the
<AutoCompleteInteraction>.options.getFocused
is less than 1
for example