"Interaction has already been acknowledged." discord.js bot

So my bot has been giving me this error where it either says "Interaction has already been acknowledged" or "Unknown interaction" - in both cases, I know my slash command file exists and should be working. How do I fix these two cases?
5 Replies
d.js toolkit
d.js toolkit15mo 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!
d.js docs
d.js docs15mo ago
Common causes of DiscordAPIError[10062]: Unknown interaction: - Initial response took more than 3 seconds ➞ defer the response *. - Wrong interaction object inside a collector. - Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance) * Note: you cannot defer modal or autocomplete value responses Tag suggestion for @CalcWarrior: - 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 components
CalcWarrior
CalcWarriorOP15mo ago
huh?
Danial
Danial15mo ago
Do you not understand something there? If so, please say what rather than just saying "huh?"
CalcWarrior
CalcWarriorOP15mo ago
So should I use (My interaction's name).followUp()?
Want results from more Discord servers?
Add your server