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 toolkit12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
Joãozinho
Joãozinho12mo ago
Joãozinho
Joãozinho12mo ago
Joãozinho
Joãozinho12mo ago
Joãozinho
Joãozinho12mo ago
Joãozinho
Joãozinho12mo ago
Joãozinho
Joãozinho12mo ago
meguFace
d.js docs
d.js docs12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
Joãozinho
Joãozinho12mo ago
do you want to put it in sourcebin?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Joãozinho
Joãozinho12mo ago
SourceBin
Functions
Instantly share your code with the world.
Joãozinho
Joãozinho12mo ago
wait
Joãozinho
Joãozinho12mo ago
SourceBin
interactions
Instantly share your code with the world.
Joãozinho
Joãozinho12mo ago
ready
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Joãozinho
Joãozinho12mo ago
okay 😥
d.js docs
d.js docs12mo 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ãozinho12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
Joãozinho
Joãozinho12mo ago
alternameproduct is working perfectly, the problem is in the function alterarestoqueproduto
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View