BUG - Disable admin logging for cleanup tasks
Opened this issue · 0 comments
Xarlos89 commented
is this behaviour intended? even if a user is an admin, if any of the roles they have are not admin values it would still send a message right? meaning every user that has a non-admin role would have this logging occur
if you wanted to NOT show admins, you should instead do a check like
is_admin = any(role.id in admin_roles.values() for role in message_before.author.roles)
and then compare against this variable
Originally posted by @Crambor in #86 (comment)