Skip to main content
Module

x/discord_api_types/v9.ts>GatewayActivity

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface GatewayActivity
Re-export
import { type GatewayActivity } from "https://deno.land/x/discord_api_types@0.37.11/v9.ts";

Properties

id: string

The activity's id

name: string

The activity's name

optional
url: string | null

Stream url, is validated when type is 1

created_at: number

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

optional
timestamps: GatewayActivityTimestamps

Unix timestamps for start and/or end of the game

optional
sync_id: string
optional
platform: string
optional
application_id: Snowflake

Application id for the game

optional
details: string | null

What the player is currently doing

optional
state: string | null

The user's current party status

optional
session_id: string
optional
party: GatewayActivityParty
optional
secrets: GatewayActivitySecrets
optional
instance: boolean

Whether or not the activity is an instanced game session

optional
flags: ActivityFlags
optional
buttons: string[] | GatewayActivityButton[]

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