diff --git a/changelog/986.deprecate.rst b/changelog/986.deprecate.rst new file mode 100644 index 0000000000..8bcd24b3db --- /dev/null +++ b/changelog/986.deprecate.rst @@ -0,0 +1 @@ +:attr:`AutoModTriggerType.harmful_link` is obsolete, it is now enabled Discord-wide. diff --git a/disnake/enums.py b/disnake/enums.py index 00ec46acab..6e093dd70b 100644 --- a/disnake/enums.py +++ b/disnake/enums.py @@ -822,7 +822,8 @@ class AutoModEventType(Enum): class AutoModTriggerType(Enum): keyword = 1 - harmful_link = 2 + if not TYPE_CHECKING: + harmful_link = 2 # obsolete/deprecated spam = 3 keyword_preset = 4 mention_spam = 5 diff --git a/docs/api.rst b/docs/api.rst index 8b3c519baf..ab867ed42a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -3836,16 +3836,15 @@ of :class:`enum.Enum`. .. versionadded:: 2.6 + .. versionchanged:: 2.9 + Removed obsolete ``harmful_link`` type. + .. attribute:: keyword The rule will filter messages based on a custom keyword list. This trigger type requires additional :class:`metadata `. - .. attribute:: harmful_link - - The rule will filter messages containing malicious links. - .. attribute:: spam The rule will filter messages suspected of being spam.