Catch deleted messages with Events.GuildAuditLogEntryCreate
Hi, I have problem with this code. As you can see on video it logs only one random message when it wants and when rest of the messages are deleted it doesn't work.
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!This seems to be a Discord bug https://github.com/discord/discord-api-docs/issues/5911
its normal messageDelete logs get stacked
so when u delete one message after 10min i think u get the log and then if u delete another the log gonna be edited User deleted 2 messages in channel
That seems to be the problem, do u know how I would make it work so i get only last message from this stack? I just want to log every deleted message.
u can use the event messageDelete but the author will not be right
or u can cache the logs and then when a message is deleted check whats logs is different from before
Thanks a lot
np