How do I make "different" Slash Command String Options?

I see this happening with NQN, and a few other Discord bots. My bot is a currency bot, that has an item/inventory system. I have a /use command, where you put in the item name and it will "use" the item. I'm trying to make it so that the suggested list in the option menu changes depending on the items each user has. How would I make this happen? (P.S, my command system is modular, with a "data" key that has the slashcommandoptions, and an "execute" function that passes the interaction and client)
3 Replies
d.js toolkit
d.js toolkit15mo ago
- 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! - Marked as resolved by OP
d.js docs
d.js docs15mo ago
Suggestion for @Soviet Pancakes:guide Slash Commands: Autocomplete read more
Soviet Pancakes
Soviet PancakesOP15mo ago
ahh i didnt know this was a thing thank you
Want results from more Discord servers?
Add your server