Skip to main content
Version: 0.37.12

GatewayActivity

Index

Properties

optionalapplication_id

application_id?: string

Application id for the game

optionalassets

assets?: Partial<Record<large_image | large_text | small_image | small_text, string>>

optionalbuttons

buttons?: string[] | GatewayActivityButton[]

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

created_at

created_at: number

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

optionaldetails

details?: null | string

What the player is currently doing

optionalemoji

optionalflags

id

id: string

The activity’s id

@unstable

optionalinstance

instance?: boolean

Whether or not the activity is an instanced game session

name

name: string

The activity’s name

optionalparty

optionalplatform

platform?: string

The platform this activity is being done on

@unstable

You can use ActivityPlatform as a stepping stone, but this might be inaccurate

optionalsecrets

secrets?: Partial<Record<match | join | spectate, string>>

optionalsession_id

session_id?: string
@unstable

optionalstate

state?: null | string

The user’s current party status

optionalsync_id

sync_id?: string

The Spotify song id

@unstable

optionaltimestamps

Unix timestamps for start and/or end of the game

type

optionalurl

url?: null | string

Stream url, is validated when type is 1