#autocomplete choices not being shown
26 messages · Page 1 of 1 (latest)
• 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.
only 25 choices can be shown at a time so you need to slice the array
I've seen some bots have over 25 choices in a command, it doesn't show all options at once but if you search it. It appears.
thats what im trying to do
thats because it's filtered
some options show but not all are showing
but no more than 25 choices can be shown
yeah unless the user types
you can do filtered.map(...).slice(0, 25)
still not giving me all the options in the array
it will only show 25 at a time
you can't have it show 100 at a time
that's just discord's limit
you can have 100 choices behind the curtain, but still only 25 can be shown
i mean its not even giving the option to show even 25, and when i try searching something in the array it doesnt show anything
did you redeploy your command after setting .setAutocomplete(true) ?
yes
where do you call execute ?
is it cause it's not in async autocomplete(interaction)
yes
and you need to make your interactionCreate handle that function under the isAutoComplete() typeguard
autocomplete choices not being shown
^