Cast activity enumerator to integer instead of accessing value directly

Should make the library more resilient to future changes.
This commit is contained in:
Rapptz
2019-06-25 21:50:06 -04:00
parent a136def52f
commit 1e982e0042
2 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class Activity(_ActivityTag):
continue
ret[attr] = value
ret['type'] = self.type.value
ret['type'] = int(self.type)
return ret
@property