diff options
| author | Rapptz <[email protected]> | 2017-05-04 04:26:11 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-04 04:35:02 -0400 |
| commit | 86bfcdd1292882fc29346c71edd7177f2cf7b736 (patch) | |
| tree | a16cd0971ea6ef4e524554bbf371cc3323e69d7c /discord/enums.py | |
| parent | Explicitly close UDP sockets when re-creating them. (diff) | |
| download | discord.py-86bfcdd1292882fc29346c71edd7177f2cf7b736.tar.xz discord.py-86bfcdd1292882fc29346c71edd7177f2cf7b736.zip | |
Add support for message delete audit log action type.
Diffstat (limited to 'discord/enums.py')
| -rw-r--r-- | discord/enums.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/enums.py b/discord/enums.py index d089b799..962de1dc 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -146,6 +146,7 @@ class AuditLogAction(Enum): emoji_create = 60 emoji_update = 61 emoji_delete = 62 + message_delete = 72 @property def category(self): @@ -175,6 +176,7 @@ class AuditLogAction(Enum): AuditLogAction.emoji_create: AuditLogActionCategory.create, AuditLogAction.emoji_update: AuditLogActionCategory.update, AuditLogAction.emoji_delete: AuditLogActionCategory.delete, + AuditLogAction.message_delete: AuditLogActionCategory.delete, } return lookup[self] @@ -197,7 +199,8 @@ class AuditLogAction(Enum): return 'webhook' elif v < 70: return 'emoji' - + elif v < 80: + return 'message' def try_enum(cls, val): """A function that tries to turn the value into enum ``cls``. |