interface GatewayActivity

external
export interface GatewayActivity

See also: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-structure

optionalexternal
application_id? : Snowflake

Application id for the game

optionalexternal
assets? : GatewayActivityAssets

Images for the presence and their hover texts

See also: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets

optionalexternal
buttons? : GatewayActivityButton[] | string[]

The custom buttons shown in the Rich Presence (max 2)

external
created_at : number

Unix timestamp of when the activity was added to the user's session

optionalexternal
details? : string | null

What the player is currently doing

optionalexternal
flags? : ActivityFlags

Activity flags ORd together, describes what the payload includes

See also: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flagshttps://en.wikipedia.org/wiki/Bit_field

external
id : string

The activity's id

optionalexternal
instance? : boolean

Whether or not the activity is an instanced game session

external
name : string

The activity's name

optionalexternal
party? : GatewayActivityParty

Information for the current party of the player

See also: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-party

optionalexternal
platform? : string

The platform this activity is being done on You can use ActivityPlatform as a stepping stone, but this might be inaccurate

optionalexternal
secrets? : GatewayActivitySecrets

Secrets for Rich Presence joining and spectating

See also: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-secrets

optionalexternal
session_id? : string

optionalexternal
state? : string | null

The user's current party status, or the text used for a custom status

optionalexternal
sync_id? : string

The Spotify song id

optionalexternal
timestamps? : GatewayActivityTimestamps

Unix timestamps for start and/or end of the game

optionalexternal
url? : string | null

Stream url, is validated when type is 1