From 67ec59caeac1913eb040a7b6fab41b4da6dfaf9e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 8 Apr 2019 23:08:43 -0400 Subject: [PATCH] Fix issue with speaking state causing an error. --- discord/enums.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/enums.py b/discord/enums.py index b99a510a7..ff5266fab 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