UNHANDLED_REJECTION: DiscordAPIError: Unknown Message
Hello, I have some issues about my bot. To explain where the errors come from is when I delete RulesMessage even if it deletes correctly and send the other embed (sorry for mistakes in my grammar)
Here the part of the code :
4 Replies
- 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!I did put a part of my code because it's the exact zone where my code put that error, the rest is correct. I want that my code :
- delete RulesMessage after clicking on the button called "Suivant" (next)
- Send the channels embed (i did put button but still not finished the code bc if it doesn't work here, then after it will not work too as I want to repeat the code for other embed)
Where exactly ?
Yes, I do know what it is
Wait, but I did put a .catch for the RulesMessage.delete no ?
Or you mean after .then ... .catch ?
The full error I have is in the title
It happens only when I click on "Suivant" after RulesMessage
Oh yeah, it seems logic, how can I make my code delete welcome message and then collect without trying to delete it again ?
Yeah, in fact I don't want to do pagination so it doesn't write "edited" so I delete the message after sending a new one with other buttons
I'm not good at boolean mhh..
Do you need my entire code ?
I found a way to make it work without problem, thank you again !