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
d.js toolkit
d.js toolkit2mo ago
- 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!
Mark
Mark2mo ago
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
BMmarci1234
BMmarci1234OP2mo ago
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?
d.js docs
d.js docs2mo ago
:event: (event) Client#messageDeleteBulk @14.16.3 Emitted whenever messages are deleted in bulk.
Mark
Mark2mo ago
should be that event if it's a bulk delete
BMmarci1234
BMmarci1234OP2mo ago
Okay lets try.
Want results from more Discord servers?
Add your server