Interface GatewayActivity

Hierarchy

  • GatewayActivity

Properties

application_id?: string

Application id for the game

assets?: Partial<Record<"large_image" | "large_text" | "small_image" | "small_text", string>>
buttons?: string[] | GatewayActivityButton[]

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

created_at: number

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

details?: null | string

What the player is currently doing

id: string

The activity's id

Unstable

instance?: boolean

Whether or not the activity is an instanced game session

name: string

The activity's name

platform?: string

The platform this activity is being done on

Unstable

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

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

Unstable

state?: null | string

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

sync_id?: string

The Spotify song id

Unstable

Unix timestamps for start and/or end of the game

url?: null | string

Stream url, is validated when type is 1

Generated using TypeDoc