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 toolkit2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoãozinhoOP2y ago
Joãozinho
JoãozinhoOP2y ago
Joãozinho
JoãozinhoOP2y ago
Joãozinho
JoãozinhoOP2y ago
Joãozinho
JoãozinhoOP2y ago
Joãozinho
JoãozinhoOP2y ago
meguFace
d.js docs
d.js docs2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoãozinhoOP2y ago
do you want to put it in sourcebin?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoãozinhoOP2y ago
SourceBin
Functions
Instantly share your code with the world.
Joãozinho
JoãozinhoOP2y ago
wait
Joãozinho
JoãozinhoOP2y ago
SourceBin
interactions
Instantly share your code with the world.
Joãozinho
JoãozinhoOP2y ago
ready
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoãozinhoOP2y ago
okay 😥
d.js docs
d.js docs2y 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ãozinhoOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Joãozinho
JoãozinhoOP2y ago
alternameproduct is working perfectly, the problem is in the function alterarestoqueproduto
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server