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 toolkit16mo 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
TobydogOP16mo 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 docs16mo ago
property GuildAuditLogsEntry#createdTimestamp The timestamp this entry was created at
Tobydog
TobydogOP16mo ago
ok.. but here's another problem
Tobydog
TobydogOP16mo ago
Tobydog
TobydogOP16mo ago
As you can see if someone delete msg for 2 times or above the method wont work umm
Tobydog
TobydogOP16mo ago
Tobydog
TobydogOP16mo 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
TobydogOP16mo ago
Tobydog
TobydogOP16mo ago
OK got it Thanks a lot!
Want results from more Discord servers?
Add your server