registration stepper/wizard
I want to make a registration stepper/wizard
how do i create this using Discord.js i want to have a init reply where a user need to accept the rules after he has clicked the yes button i want to follow up with a modal
5 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!Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
is it possible to do it after i deleted the first reply?
because after the modal i need a select menu
could you explain me the workflow a bit more in detail?
i have at first a button where u need to select yes then i want to show a modal after the modal a select menu
then i do all code after the button inside the collector event?
:method: Message#awaitMessageComponent
@14.15.2
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
:method: ButtonInteraction#awaitModalSubmit @14.15.2
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ChatInputCommandInteraction.showModal (C:\gitrepos\tii-api\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:255:46)
at Object.execute (C:\gitrepos\tii-api\src\bot\slashCommands\register.ts:48:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'InteractionAlreadyReplied'
}
why is the interaction already sent or deferred?
but its still the same issue
ah okay
but qjuh is it possible to delete the first response as well after the user pressed the yes button?
oh i was missing a costum id the error is a bit confusing do you know why i dont get a error like you are missing ...