Browse Source
Change max values in AutoModTrigger attributes docs
pull/9264/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
4 additions and
3 deletions
-
discord/automod.py
|
|
@ -139,13 +139,13 @@ class AutoModTrigger: |
|
|
|
The type of trigger. |
|
|
|
keyword_filter: List[:class:`str`] |
|
|
|
The list of strings that will trigger the keyword filter. Maximum of 1000. |
|
|
|
Keywords can only be up to 30 characters in length. |
|
|
|
Keywords can only be up to 60 characters in length. |
|
|
|
|
|
|
|
This could be combined with :attr:`regex_patterns`. |
|
|
|
regex_patterns: List[:class:`str`] |
|
|
|
The regex pattern that will trigger the filter. The syntax is based off of |
|
|
|
`Rust's regex syntax <https://docs.rs/regex/latest/regex/#syntax>`_. |
|
|
|
Maximum of 10. Regex strings can only be up to 250 characters in length. |
|
|
|
Maximum of 10. Regex strings can only be up to 260 characters in length. |
|
|
|
|
|
|
|
This could be combined with :attr:`keyword_filter` and/or :attr:`allow_list` |
|
|
|
|
|
|
@ -153,7 +153,8 @@ class AutoModTrigger: |
|
|
|
presets: :class:`AutoModPresets` |
|
|
|
The presets used with the preset keyword filter. |
|
|
|
allow_list: List[:class:`str`] |
|
|
|
The list of words that are exempt from the commonly flagged words. |
|
|
|
The list of words that are exempt from the commonly flagged words. Maximum of 100. |
|
|
|
Keywords can only be up to 60 characters in length. |
|
|
|
mention_limit: :class:`int` |
|
|
|
The total number of user and role mentions a message can contain. |
|
|
|
Has a maximum of 50. |
|
|
|