mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-02 00:00:02 +00:00
Document relationship between AutoModRuleAction and its type
This commit is contained in:
parent
2fb309a463
commit
5538cd501c
@ -65,11 +65,14 @@ class AutoModRuleAction:
|
|||||||
-----------
|
-----------
|
||||||
type: :class:`AutoModRuleActionType`
|
type: :class:`AutoModRuleActionType`
|
||||||
The type of action to take.
|
The type of action to take.
|
||||||
|
Defaults to :attr:`~AutoModRuleActionType.block_message`.
|
||||||
channel_id: Optional[:class:`int`]
|
channel_id: Optional[:class:`int`]
|
||||||
The ID of the channel or thread to send the alert message to, if any.
|
The ID of the channel or thread to send the alert message to, if any.
|
||||||
|
Passing this sets :attr:`type` to :attr:`~AutoModRuleActionType.send_alert_message`.
|
||||||
duration: Optional[:class:`datetime.timedelta`]
|
duration: Optional[:class:`datetime.timedelta`]
|
||||||
The duration of the timeout to apply, if any.
|
The duration of the timeout to apply, if any.
|
||||||
Has a maximum of 28 days.
|
Has a maximum of 28 days.
|
||||||
|
Passing this sets :attr:`type` to :attr:`~AutoModRuleActionType.timeout`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__slots__ = ('type', 'channel_id', 'duration')
|
__slots__ = ('type', 'channel_id', 'duration')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user