DiscordAPIError[40060]: Interaction has already been acknowledged.

I'm having a problem with a button with this error when I click the first time it goes normally, then I go back to the BACK button, when I click dnv to enter it gives this error, do you know how to help me?
23 Replies
d.js toolkit
d.js toolkit•3y ago
• 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.
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoĆ£ozinhoOP•3y ago
Joãozinho
JoĆ£ozinhoOP•3y ago
Joãozinho
JoĆ£ozinhoOP•3y ago
Joãozinho
JoĆ£ozinhoOP•3y ago
Joãozinho
JoĆ£ozinhoOP•3y ago
Joãozinho
JoĆ£ozinhoOP•3y ago
meguFace
d.js docs
d.js docs•3y ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoĆ£ozinhoOP•3y ago
do you want to put it in sourcebin?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoĆ£ozinhoOP•3y ago
SourceBin
Functions
Instantly share your code with the world.
Joãozinho
JoĆ£ozinhoOP•3y ago
wait
Joãozinho
JoĆ£ozinhoOP•3y ago
SourceBin
interactions
Instantly share your code with the world.
Joãozinho
JoĆ£ozinhoOP•3y ago
ready
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoĆ£ozinhoOP•3y ago
okay 😄
d.js docs
d.js docs•3y ago
If you are waiting for button or select menu input from a specific message, don't create the collector on the channel. - Channel collectors return component interactions for any component within that channel.
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
Joãozinho
JoĆ£ozinhoOP•3y ago
But I'm still waiting for a message
const collector = message.createMessageComponentCollector({
componentType: ComponentType.Button,
time: 120000
});
const collector = message.createMessageComponentCollector({
componentType: ComponentType.Button,
time: 120000
});
it is already pulling the message in the collector and not the channel
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoĆ£ozinhoOP•3y ago
alternameproduct is working perfectly, the problem is in the function alterarestoqueproduto
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?