Bot crashing after string gives role
My bot crashes when a user tries to select a role from my string menu options. It gives the roles then crashes, if they choose remove roles it just crashes. Anything would be appreciated:
11 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 OPUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
one second
sorry
Error:
-
DiscordAPIError: Interaction has already been acknowledged
- [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
You have already replied to the interaction.
- Use <Interaction>.followUp()
to send a new message
- If you deferred reply it's better to use <Interaction>.editReply()
- Responding to slash commands / message componentsI have djs version 14.16
and I can't figure out what to do with debugging
so wait
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
It says its already replied to here even though it's not in colors.js, its in roles.js:
and 225 has an interaction reply
line 225*
how would I fix that?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
But the string menu is from the roles command which is in roles.js, so would I just delete the reply their then?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
hm ty I'll look into it!
i fixed it but now my interaction handler isnt working, giving the roles works but when I try to remove the roles it just says there was an error in my code and sends this into the console: