Checking is_automod_immune inside on_message with a webhook message update.
is_automod_immune would return True or False depending on who sent the message.
is_automod_immune raised AttributeError: 'User' object has no attribute 'roles' after a webhook message was sent.
Check is_automod_immune on incoming webhook messages.
This is very easily remedied, the question is should webhooks be considered automod immune though? My 2c is yes since they require manage_server to set up.
I'm going through our other methods which take a message, context, or author to ensure they don't run into the same issue, PR in a moment with them being considered immune from moderation actions, behavior on that can be changed if desired.
Resolved by #2337.
Most helpful comment
This is very easily remedied, the question is should webhooks be considered automod immune though? My 2c is yes since they require manage_server to set up.