Fetch the user who deleted the message
As the title mentioned, I'd like to know if there's a way to do that through onMessageDelete
10 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!Oh cool
Let me try it
Now the problem is, I deleted my own msg, and it had successfully fetched the log, but it was the wrong log.
How do a avoid this?
The "lastPinTimestamp" one?
ok..
but here's another problem

As you can see
if someone delete msg for 2 times or above
the method wont work
umm


1692619302049 stands for the timestamp of the auditlog
I deleted two msg
but the timestamp are the same
the rest?
umm
I fetched the top 2 of them
OK got it
Thanks a lot!