mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Change Activity.application_id from str
to int
.
This commit is contained in:
parent
700dbb5555
commit
9765b701f2
@ -28,6 +28,7 @@ import datetime
|
||||
|
||||
from .enums import ActivityType, try_enum
|
||||
from .colour import Colour
|
||||
from .utils import _get_as_snowflake
|
||||
|
||||
__all__ = ['Activity', 'Streaming', 'Game', 'Spotify']
|
||||
|
||||
@ -93,7 +94,7 @@ class Activity(_ActivityTag):
|
||||
|
||||
Attributes
|
||||
------------
|
||||
application_id: :class:`str`
|
||||
application_id: :class:`int`
|
||||
The application ID of the game.
|
||||
name: :class:`str`
|
||||
The name of the activity.
|
||||
@ -138,7 +139,7 @@ class Activity(_ActivityTag):
|
||||
self.timestamps = kwargs.pop('timestamps', {})
|
||||
self.assets = kwargs.pop('assets', {})
|
||||
self.party = kwargs.pop('party', {})
|
||||
self.application_id = kwargs.pop('application_id', None)
|
||||
self.application_id = _get_as_snowflake(kwargs, 'application_id')
|
||||
self.name = kwargs.pop('name', None)
|
||||
self.url = kwargs.pop('url', None)
|
||||
self.flags = kwargs.pop('flags', 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user