How to make an autocomplete list from mongodb entries
So I have an array of objects, i want to display the name field of each object in a list, and then once an option is clicked delete that object. How should i go about that? Or even better display them in a dropdown
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Yes, so I actually need to do both, one that autocompletes in a slash command option, and then a dropdown that's attatched to an embed
my main focus is the autocompleting in the slash cmd, dropdown is just a benefit if i manage to get it working
This will work. About the slash command the database items that will be inserted in the autocomplete will be only the ones available at bot's startup. So they wouldn't be updated automatically
Unless there is a special function in djs that I'm not aware of