Browse Source
Fix MISSING error for enabled param in create_automod_rule
pull/9296/head
Puncher
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
discord/guild.py
|
|
@ -4064,7 +4064,7 @@ class Guild(Hashable): |
|
|
|
event_type: AutoModRuleEventType, |
|
|
|
trigger: AutoModTrigger, |
|
|
|
actions: List[AutoModRuleAction], |
|
|
|
enabled: bool = MISSING, |
|
|
|
enabled: bool = False, |
|
|
|
exempt_roles: Sequence[Snowflake] = MISSING, |
|
|
|
exempt_channels: Sequence[Snowflake] = MISSING, |
|
|
|
reason: str = MISSING, |
|
|
@ -4089,7 +4089,7 @@ class Guild(Hashable): |
|
|
|
The actions that will be taken when the automod rule is triggered. |
|
|
|
enabled: :class:`bool` |
|
|
|
Whether the automod rule is enabled. |
|
|
|
Discord will default to ``False``. |
|
|
|
Defaults to ``False``. |
|
|
|
exempt_roles: Sequence[:class:`abc.Snowflake`] |
|
|
|
A list of roles that will be exempt from the automod rule. |
|
|
|
exempt_channels: Sequence[:class:`abc.Snowflake`] |
|
|
|