mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-25 04:13:56 +00:00
Fix MISSING error for enabled param in create_automod_rule
This commit is contained in:
parent
79c508311f
commit
103d75540c
@ -4064,7 +4064,7 @@ class Guild(Hashable):
|
|||||||
event_type: AutoModRuleEventType,
|
event_type: AutoModRuleEventType,
|
||||||
trigger: AutoModTrigger,
|
trigger: AutoModTrigger,
|
||||||
actions: List[AutoModRuleAction],
|
actions: List[AutoModRuleAction],
|
||||||
enabled: bool = MISSING,
|
enabled: bool = False,
|
||||||
exempt_roles: Sequence[Snowflake] = MISSING,
|
exempt_roles: Sequence[Snowflake] = MISSING,
|
||||||
exempt_channels: Sequence[Snowflake] = MISSING,
|
exempt_channels: Sequence[Snowflake] = MISSING,
|
||||||
reason: str = MISSING,
|
reason: str = MISSING,
|
||||||
@ -4089,7 +4089,7 @@ class Guild(Hashable):
|
|||||||
The actions that will be taken when the automod rule is triggered.
|
The actions that will be taken when the automod rule is triggered.
|
||||||
enabled: :class:`bool`
|
enabled: :class:`bool`
|
||||||
Whether the automod rule is enabled.
|
Whether the automod rule is enabled.
|
||||||
Discord will default to ``False``.
|
Defaults to ``False``.
|
||||||
exempt_roles: Sequence[:class:`abc.Snowflake`]
|
exempt_roles: Sequence[:class:`abc.Snowflake`]
|
||||||
A list of roles that will be exempt from the automod rule.
|
A list of roles that will be exempt from the automod rule.
|
||||||
exempt_channels: Sequence[:class:`abc.Snowflake`]
|
exempt_channels: Sequence[:class:`abc.Snowflake`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user