Follow up response
Im attempting to get the response of a follow up, after a slash command and a button click
Basically want a ban button and after they press that to get the reason for ban. I attached a snipped of where it goes wrong (after the collection)
9 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!
- ✅
Marked as resolved by staff
most of the structure is from the tutorial page
what would a modal look like in this context? also want to avoid it being a ban command bc it’s mainly so i can manage my games on mobile
if it’s the drop down i do like that, but i want moderators to be able to attach links to the ban messages
yeah one slash command is easy enough, button also easy to click as well as just tying in anything, the input is what i don’t really like on mobile, but also want to verify it’s the right person before banning
it’s mainly for cheaters, so game related info will be displayed with the ban option
wait modals is perfect i thought they were drop downs
i’ll look into this rn
reason i don’t want ban slash commands, i need to review the profile prior to ban, and it won’t just be ban but other actions, based on their ingame performance
outside of discord
test game im implementing has like 1m monthly users but i want to do on much bigger projects w a lot of moderators and a lot of different actions
basically cant have the action decided prior to profile lookup
one last thing, can i get the modal input the same as the button or will this require resetting up the whole thing
:method: ButtonInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
well the issue happens when displaying the modal, because its still in the original slash command context, so it says the interaction has already been sent or deffered