Browse Source

Fix AutoModRule.edit to work with actual snowflake types

Fixes #9159
pull/9165/head
Rapptz 2 years ago
parent
commit
7863418ddb
  1. 4
      discord/automod.py

4
discord/automod.py

@ -429,10 +429,10 @@ class AutoModRule:
payload['enabled'] = enabled
if exempt_roles is not MISSING:
payload['exempt_roles'] = exempt_roles
payload['exempt_roles'] = [x.id for x in exempt_roles]
if exempt_channels is not MISSING:
payload['exempt_channels'] = exempt_channels
payload['exempt_channels'] = [x.id for x in exempt_channels]
data = await self._state.http.edit_auto_moderation_rule(
self.guild.id,

Loading…
Cancel
Save