Skip to main content
Version: Next

GatewayActivity

Index

Properties

optionalapplication_id

application_id?: string

Application id for the game

optionalassets

assets?: Partial<Record<large_image | large_text | large_url | small_image | small_text | small_url, 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

optionaldetails_url

details_url?: null | string

URL that is linked when clicking on the details text

optionalemoji

optionalflags

id
unstable

id: string

The activity's id

optionalinstance

instance?: boolean

Whether or not the activity is an instanced game session

name

name: string

The activity's name

optionalparty

optionalplatform
unstable

platform?: string

The platform this activity is being done on

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

optionalsecrets

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

optionalsession_id
unstable

session_id?: string

optionalstate

state?: null | string

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

optionalstate_url

state_url?: null | string

URL that is linked when clicking on the state text

optionalstatus_display_type

status_display_type?: null | StatusDisplayType

Controls which field is displayed in the user's status text in the member list

@see

optionalsync_id
unstable

sync_id?: string

The Spotify song id

optionaltimestamps

Unix timestamps for start and/or end of the game

type

optionalurl

url?: null | string

Stream url, is validated when type is 1