It doesnt work.
So I have a discord bot that always when someone deleting a message it could not find the deleter. can anyone help me?
the code: https://sourceb.in/DtistNYGW7
6 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!a) audit log entries are not guaranteed to be generated by the time you receive the messageDelete event
b) not all deletions create a log - self-deletes or deletions by bots
okay let me try
Tysm it works. I have a question that, can I do that if like a bot purges 5 messages then it wont log as only the commannd for example !purge 5 was deleted but all the 5 real messages that were deleted should be there. How can I do that?
should be that event if it's a bulk delete
Okay lets try.