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
d.js toolkit
d.js toolkit10mo 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!
Tobydog
Tobydog10mo ago
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?
d.js docs
d.js docs10mo ago
property GuildAuditLogsEntry#createdTimestamp The timestamp this entry was created at
Tobydog
Tobydog10mo ago
ok.. but here's another problem
Tobydog
Tobydog10mo ago
Tobydog
Tobydog10mo ago
As you can see if someone delete msg for 2 times or above the method wont work umm
Tobydog
Tobydog10mo ago
Tobydog
Tobydog10mo ago
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
Tobydog
Tobydog10mo ago
OK got it Thanks a lot!