#Bot is waiting for something to happen and timing out after sending command response

24 messages · Page 1 of 1 (latest)

royal starBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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!
flat thorn
#

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

primal estuary
#

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

flat thorn
primal estuary
#

I don't know what that means

flat thorn
#

i dont think you realize that sending a message to a channel doesn't count as an interaction reply

gaunt barn
#

All interactions need a reply. You not wanting to reply is the main issue

primal estuary
#

So I should be building the command outside of the interaction methods

icy pantherBOT
flat thorn
#

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)

icy pantherBOT
flat thorn
#

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

gaunt barn
icy pantherBOT
#

guide Slash Commands: Command response methods
read more

primal estuary
#

Because I don't want it to say "user used /command" in the reply block above the message in discord

flat thorn
primal estuary
#

Well that's helpful

#

So far I'm pretty good at letting it fail apparently

flat thorn
errant vessel