Get user who deleted a message
On the messageDelete event, is there any way to get the user who deleted the message? I'm trying with audit logs but its not giving anything relevant:
7 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!
- ✅
Marked as resolved by OPAudit logs are not generated if the author or a bot deleted it
ah I see
Would recommend using the guildAuditLogEntryCreate event for this instead of fetching
is it just better for api calls?
Yeah, you wouldn't be be making a request every time a message is deleted
cool. thank you for the help