Dynamic options for a slash command? Wizard-esque UI

is it possible to create a slash command that uses a technique similar to Autocomplete for the subsequent arguments (options) for the command? e.g. if I have /summon <monster> and there are bunch of options for monsters - some have size or power - some have color - some have other options Ideally it'd almost be like filling out a form, with each step populated as the user does it - /summon dragon - "fire" - from a "volcano" (because fire) - specifically "Hawaii" (because volcanos) How does one do a dynamic wizard-esque interface like this using a slash command? Would an alternative idea be posting multiple epehmeral messages with the followup questions?
4 Replies
d.js toolkit
d.js toolkit16mo 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!
jamiedubs
jamiedubsOP16mo ago
alternately: is it possible to change some options from optional to required at runtime? In theory I could just do arg1,arg2, arg3 as optional and then just switch them to required depending on the input
space
space16mo ago
Discord unfortunately does not allow anything dynamic here, so you would need to work around this somehow.
jamiedubs
jamiedubsOP16mo ago
thanks for confirming. do you know offhand of any examples of sort of chaining slash-commands together, or other ways of doing multi-step wizard-like UIs like this?
Want results from more Discord servers?
Add your server