#error interaction already defined

9 messages · Page 1 of 1 (latest)

wooden umbra
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

tired sphinx
#

What error do you get?

#

That's coming from your command handler

burnt mesa
#

It looks like you have an action that take more then 3 seconds to be completed

#

Do you await responses? You always should await promises.

#

Show your interactionCreate

tired sphinx
#

I would probably defer the interaction

#

my only guess is either you have two instances of the project running but that’s probably not the case here or it takes more than 3 seconds

pulsar imp
#

you might me replying to the interaction twice
interaction has already been acknowledged means that when an interaction has already been replied and you try to send another reply to it, so, might help if you use interaction.editReply()