diff options
| author | Rapptz <[email protected]> | 2021-04-28 01:37:26 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-27 00:53:14 -0400 |
| commit | eda668037718e9ee8a99ea9f5773149c22fedce2 (patch) | |
| tree | 5bd92e3355d99916b8513a1ecfac8ef4dbdbe4d0 /discord/enums.py | |
| parent | Properly guard for DMs in interaction creation (diff) | |
| download | discord.py-eda668037718e9ee8a99ea9f5773149c22fedce2.tar.xz discord.py-eda668037718e9ee8a99ea9f5773149c22fedce2.zip | |
Rename enums to use official API naming
Diffstat (limited to 'discord/enums.py')
| -rw-r--r-- | discord/enums.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/discord/enums.py b/discord/enums.py index a06e473e..b7e4ee30 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -445,7 +445,7 @@ class InteractionResponseType(Enum): # channel_message = 3 (deprecated) channel_message = 4 # (with source) deferred_channel_message = 5 # (with source) - ack = 6 # for components? + deferred_message_update = 6 # for components class VideoQualityMode(Enum): auto = 1 @@ -455,18 +455,18 @@ class VideoQualityMode(Enum): return self.value class ComponentType(Enum): - group = 1 + action_row = 1 button = 2 def __int__(self): return self.value class ButtonStyle(Enum): - blurple = 1 - grey = 2 - green = 3 - red = 4 - hyperlink = 5 + primary = 1 + secondary = 2 + success = 3 + danger = 4 + link = 5 def __int__(self): return self.value |