mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
1 parent
887ddbb4b6
commit
7863418ddb
1 file changed
+2
-2
+2
-2
@@ -429,10 +429,10 @@ class AutoModRule:
|
|||||||
payload['enabled'] = enabled
|
payload['enabled'] = enabled
|
||||||
|
|
||||||
if exempt_roles is not MISSING:
|
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:
|
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(
|
data = await self._state.http.edit_auto_moderation_rule(
|
||||||
self.guild.id,
|
self.guild.id,
|
||||||
|
|||||||
Reference in new issue
Block a user