- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
#Bot is waiting for something to happen and timing out after sending command response
24 messages · Page 1 of 1 (latest)
what's the issue here? it does exactly what you told it to do
it defers the interaction, giving you 15 more minutes to reply, and then you send a message to the channel
See screenshot attached, the issuing user gets a "Ablazed glory is thinking..." ephemeral and I don't want it to do that
And can't figure out why it's doing that
it defers the interaction, giving you 15 more minutes to reply
I don't know what that means
i dont think you realize that sending a message to a channel doesn't count as an interaction reply
All interactions need a reply. You not wanting to reply is the main issue
So I should be building the command outside of the interaction methods
ChatInputCommandInteraction#reply()
Creates a reply to this interaction. (more...)
Do this directly if you don't want the "thinking" message
(if your code will always run within 3 seconds of the command being executed)
ChatInputCommandInteraction#editReply()
Edits a reply to this interaction.
do this if you want the thinking message, giving you 15 more minutes, and then use this to edit the message
.. or rather read the guide
A slashcommand always issues an interaction. Counter question: why do you not want to reply to the ChatInputCommandInteraction?
Because I don't want it to say "user used /command" in the reply block above the message in discord
well then i guess you'll have to say something like "command executed" instead of deferring, or just do nothing and let the interaction fail
it fails automatically
why not respond with a random message and then delete it right after?
Slash Commands: Command response methods