unixporn / trup

Discord bot for the Unixporn community
Mozilla Public License 2.0
47 stars 9 forks source link

Check the audit log to see if a mod deleted a message. #60

Closed eepykate closed 4 years ago

eepykate commented 4 years ago

It appears that the audit log is open to the bot api, so why not check the latest entry when a message has been deleted, and see if it was done by a user, or a mod? If a mod deleted it, they could be added somewhere in the message.

Message Deleted by mod#1234

And then continue like normal.

eepykate commented 4 years ago

iirc there is also a gateway event for when a message is deleted, no need to check the audit log

- Doc on discord