Skip to content
Advertisement

discord.py :: How do I make on_message_delete ignore a certain user / role via an embed?

I have a log channel set so if a user deletes a message, it gets sent to the channel so my moderators and myself can see deleted messages.

JavaScript

I want to make it so this does not send an embed showcasing what my moderators or myself deleted to avoid clutter. Is there a way to do this?

Advertisement

Answer

You can just return if the message meets these conditions:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement