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

str – the activity’s name

type

int – activity type

url

str, optional – stream url, is validated when type is 1

timestamps

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

application_id

int, optional – application id for the game

details

str, optional – what the player is currently doing

state

str, optional – the user’s current party status

party

Party – object information for the current party of the player

assets

Assets – object images for the presence and their hover texts

Inheritance

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

Activity party

New in version 0.2.0.

id

str, optional – the id of the party

size

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

Inheritance

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

Activity timestamps

New in version 0.2.0.

start

int, optional – unix time (in milliseconds) of when the activity started

end

int, optional – unix time (in milliseconds) of when the activity ends

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

str, optional – the id for a large asset of the activity, usually a snowflake

large_text

str, optional – text displayed when hovering over the large image of the activity

small_image

str, optional – the id for a small asset of the activity, usually a snowflake

small_text

str, optional – text displayed when hovering over the small image of the activity

Inheritance

Inheritance diagram of ActivityAssets