mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +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:
@ -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