Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
feat💥: Support auto-mod (#477)
Browse files Browse the repository at this point in the history
* feat: Add auto-moderation audit log types

* refactor💥: Rename message type `auto_mod` to match api

the api refers to it as AUTO_MODERATION_ACTION  not the placeholder of `AUTO_MOD`
  • Loading branch information
LordOfPolls authored May 13, 2022
1 parent 6f09f3b commit 7e52d12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion naff/models/discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class MessageTypes(IntEnum):
THREAD_STARTER_MESSAGE = 21
GUILD_INVITE_REMINDER = 22
CONTEXT_MENU_COMMAND = 23
AUTO_MOD = 24
AUTO_MODERATION_ACTION = 24


class MessageActivityTypes(IntEnum):
Expand Down Expand Up @@ -799,3 +799,7 @@ class AuditLogEventType(IntEnum):
THREAD_UPDATE = 111
THREAD_DELETE = 112
APPLICATION_COMMAND_PERMISSION_UPDATE = 121
AUTO_MODERATION_RULE_CREATE = 140
AUTO_MODERATION_RULE_UPDATE = 141
AUTO_MODERATION_RULE_DELETE = 142
AUTO_MODERATION_BLOCK_MESSAGE = 143

0 comments on commit 7e52d12

Please sign in to comment.