mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +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:
@ -380,6 +380,9 @@ class ActivityType(Enum):
|
||||
listening = 2
|
||||
watching = 3
|
||||
|
||||
def __int__(self):
|
||||
return self.value
|
||||
|
||||
class HypeSquadHouse(Enum):
|
||||
bravery = 1
|
||||
brilliance = 2
|
||||
|
Reference in New Issue
Block a user