Display "Failed of the interaction" but no logs error and still running well
I've done a pagination on an embed, everything works well when i click on navigation buttons but a very ugly red message show up after buttons seems to searching something, but embed is well edited.
Did i missed something ?
5 Replies
• 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.Add
fetchReply: true
to your interaction replyoh, now i have a console error when clicking on button :
have done this change :
DiscordAPIError[10008]: Unknown Message
at handleErrors (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\node_modules\@discordjs\rest\dist\index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.runRequest (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\node_modules\@discordjs\rest\dist\index.js:1021:23)
at async SequentialHandler.queueRequest (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async MessageManager.edit (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\node_modules\discord.js\src\managers\MessageManager.js:176:15)
at async InteractionCollector.<anonymous> (C:\Users\Propriétaire\Documents\Bot Discord\Nemo\commands\stacking.js:661:21)
You should use this with interactions
Oooh, thank you for your advice, you remind me to use the interaction instead of message. And i try the update method instead of edit, editReply
And it works well now !! 🥳