GatewayActivity

export interface GatewayActivity
export interface GatewayActivity
https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-structure
application_id?:Snowflake
Application id for the game
Images for the presence and their hover textsSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets
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?:string | null
What the player is currently doing
The emoji used for a custom statusSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-emoji
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
The activity's id
instance?:boolean
Whether or not the activity is an instanced game session
name:string
The activity's name
Information for the current party of the playerSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-party
platform?:string
The platform this activity is being done on You can use ActivityPlatform as a stepping stone, but this might be inaccurate
Secrets for Rich Presence joining and spectatingSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-secrets
session_id?:string
state?:string | null
The user's current party status, or the text used for a custom status
sync_id?:string
The Spotify song id
Unix timestamps for start and/or end of the game
Activity typeSee https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
url?:string | null
Stream url, is validated when type is 1