discordaio.activity¶
Classes¶
Activity: Represents a discord activityActivityParty: Activity partyActivityTimestamps: Activity timestampsActivityAssets: Activity assets
-
class
discordaio.activity.Activity(name='', type=0, url='', timestamps=None, application_id=0, details='', state='', party=None, assets=None)[source]¶ Represents a discord activity
New in version 0.2.0.
-
timestamps¶ object unix timestamps for start and/or end of the game
Type: Timestamps
-
party¶ object information for the current party of the player
Type: Party
-
assets¶ object images for the presence and their hover texts
Type: Assets
Inheritance

-
-
class
discordaio.activity.ActivityParty(id='', size=[])[source]¶ Activity party
New in version 0.2.0.
-
size¶ array of two integers (current_size, max_size), used to show the party’s current and maximum size
Type: listofint
Inheritance

-
-
class
discordaio.activity.ActivityTimestamps(start=0, end=0)[source]¶ Activity timestamps
New in version 0.2.0.
Inheritance

