aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-08 23:08:43 -0400
committerRapptz <[email protected]>2019-04-08 23:08:43 -0400
commit67ec59caeac1913eb040a7b6fab41b4da6dfaf9e (patch)
treec15b6e8a2950d54181f6c8f5ac0e398027c30e43
parentUpdate classifier in setup.py (diff)
downloaddiscord.py-67ec59caeac1913eb040a7b6fab41b4da6dfaf9e.tar.xz
discord.py-67ec59caeac1913eb040a7b6fab41b4da6dfaf9e.zip
Fix issue with speaking state causing an error.
-rw-r--r--discord/enums.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index b99a510a..ff5266fa 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -87,6 +87,9 @@ class SpeakingState(Enum):
def __str__(self):
return self.name
+ def __int__(self):
+ return self.value
+
class VerificationLevel(Enum):
none = 0
low = 1