kick cmd err?

I finished the code of the kick command and in fact everything went well, I tried to execute the command again but now the bot gave me the error that "The application did not respond", I did not understand why since the code is fine for me, I wanted to ask, this is because this error comes out quite a lot, but there are few times where the command works for me and others when it doesn't. I'll leave the kick code belowww. (Sorry if this is something very basic or something like that, I'm just starting out with all this discord.js stuff ^.^)
3 Replies
d.js toolkit
d.js toolkit•16mo ago
- 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!
edocsil
edocsil•16mo ago
"The application did not respond" is shown to the end user when your bot doesn't acknowledge the interaction within 3 seconds. This is because you're doing other stuff before trying to reply to the interaction. If you're going to make requests and such before responding you should deferReply() the interaction as soon as you know it will take extra time and then editReply() to update the message when done I'd expect you to also get "unknown interaction" errors on your console when this happens
clapii 𓆰𓆪
thx it worked ^^
Want results from more Discord servers?
Add your server