Fix exempt_channels not being passed along in create_automod_rule

This commit is contained in:
Leonardo
2024-06-11 23:30:53 +02:00
committed by GitHub
parent 0e58a927dd
commit fdb17ead03

View File

@ -4374,7 +4374,7 @@ class Guild(Hashable):
actions=[a.to_dict() for a in actions],
enabled=enabled,
exempt_roles=[str(r.id) for r in exempt_roles] if exempt_roles else None,
exempt_channel=[str(c.id) for c in exempt_channels] if exempt_channels else None,
exempt_channels=[str(c.id) for c in exempt_channels] if exempt_channels else None,
reason=reason,
)