discordaio.activity

Classes

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.

name

the activity’s name

Type:str
type

activity type

Type:int
url

stream url, is validated when type is 1

Type:str, optional
timestamps

object unix timestamps for start and/or end of the game

Type:Timestamps
application_id

application id for the game

Type:int, optional
details

what the player is currently doing

Type:str, optional
state

the user’s current party status

Type:str, optional
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

Inheritance diagram of Activity
class discordaio.activity.ActivityParty(id='', size=[])[source]

Activity party

New in version 0.2.0.

id

the id of the party

Type:str, optional
size

array of two integers (current_size, max_size), used to show the party’s current and maximum size

Type:list of int

Inheritance

Inheritance diagram of ActivityParty
class discordaio.activity.ActivityTimestamps(start=0, end=0)[source]

Activity timestamps

New in version 0.2.0.

start

unix time (in milliseconds) of when the activity started

Type:int, optional
end

unix time (in milliseconds) of when the activity ends

Type:int, optional

Inheritance

Inheritance diagram of ActivityTimestamps
class discordaio.activity.ActivityAssets(large_image='', large_text='', small_image='', small_text='')[source]

Activity assets

New in version 0.2.0.

large_image

the id for a large asset of the activity, usually a snowflake

Type:str, optional
large_text

text displayed when hovering over the large image of the activity

Type:str, optional
small_image

the id for a small asset of the activity, usually a snowflake

Type:str, optional
small_text

text displayed when hovering over the small image of the activity

Type:str, optional

Inheritance

Inheritance diagram of ActivityAssets