interface GatewayActivity

external
export interface GatewayActivity

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 textsSee 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
emoji? : GatewayActivityEmoji

The emoji used for a custom statusSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-emoji

optionalexternal
flags? : ActivityFlags

Activity flags ORd together, describes what the payload includesSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flagsSee https://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 playerSee 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 spectatingSee 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

external
type : ActivityType

Activity typeSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types

optionalexternal
url? : string | null

Stream url, is validated when type is 1