From 1e982e0042ae6c50e59b9b77fb77aa6f361ef0e9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 25 Jun 2019 21:50:06 -0400 Subject: Cast activity enumerator to integer instead of accessing value directly Should make the library more resilient to future changes. --- discord/activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/activity.py') diff --git a/discord/activity.py b/discord/activity.py index 692e20e9..3acc046d 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -175,7 +175,7 @@ class Activity(_ActivityTag): continue ret[attr] = value - ret['type'] = self.type.value + ret['type'] = int(self.type) return ret @property -- cgit v1.2.3