aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/discord/enums.py b/discord/enums.py
index f7df9059..f11f1ed1 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -26,10 +26,10 @@ DEALINGS IN THE SOFTWARE.
from enum import Enum, IntEnum
-__all__ = ['ChannelType', 'MessageType', 'VoiceRegion', 'VerificationLevel',
- 'ContentFilter', 'Status', 'DefaultAvatar', 'RelationshipType',
- 'AuditLogAction', 'AuditLogActionCategory', 'UserFlags',
- 'ActivityType', 'HypeSquadHouse', 'NotificationLevel']
+__all__ = ['ChannelType', 'MessageType', 'VoiceRegion', 'SpeakingState',
+ 'VerificationLevel', 'ContentFilter', 'Status', 'DefaultAvatar',
+ 'RelationshipType', 'AuditLogAction', 'AuditLogActionCategory',
+ 'UserFlags', 'ActivityType', 'HypeSquadHouse', 'NotificationLevel']
class ChannelType(Enum):
text = 0
@@ -75,6 +75,15 @@ class VoiceRegion(Enum):
def __str__(self):
return self.value
+class SpeakingState(IntEnum):
+ none = 0
+ voice = 1
+ soundshare = 2
+ priority = 4
+
+ def __str__(self):
+ return self.name
+
class VerificationLevel(IntEnum):
none = 0
low = 1