mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Support for AutoMod Members
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com> Co-authored-by: Kaylynn Morgan <51037748+kaylynn234@users.noreply.github.com> Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
18
docs/api.rst
18
docs/api.rst
@ -3330,6 +3330,12 @@ of :class:`enum.Enum`.
|
||||
The rule will trigger when combined number of role and user mentions
|
||||
is greater than the set limit.
|
||||
|
||||
.. attribute:: member_profile
|
||||
|
||||
The rule will trigger when a user's profile contains a keyword.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. class:: AutoModRuleEventType
|
||||
|
||||
Represents the event type of an automod rule.
|
||||
@ -3340,6 +3346,12 @@ of :class:`enum.Enum`.
|
||||
|
||||
The rule will trigger when a message is sent.
|
||||
|
||||
.. attribute:: member_update
|
||||
|
||||
The rule will trigger when a member's profile is updated.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. class:: AutoModRuleActionType
|
||||
|
||||
Represents the action type of an automod rule.
|
||||
@ -3358,6 +3370,12 @@ of :class:`enum.Enum`.
|
||||
|
||||
The rule will timeout a user.
|
||||
|
||||
.. attribute:: block_member_interactions
|
||||
|
||||
Similar to :attr:`timeout`, except the user will be timed out indefinitely.
|
||||
This will request the user to edit it's profile.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. class:: ForumLayoutType
|
||||
|
||||
|
Reference in New Issue
Block a user