mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Cast activity enumerator to integer instead of accessing value directly
Should make the library more resilient to future changes.
This commit is contained in:
1 parent
a136def52f
commit
1e982e0042
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -175,7 +175,7 @@ class Activity(_ActivityTag):
|
||||
continue
|
||||
|
||||
ret[attr] = value
|
||||
ret['type'] = self.type.value
|
||||
ret['type'] = int(self.type)
|
||||
return ret
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user