Skip to main content
Module

x/discord_api_types/payloads/v8/gateway.ts>GatewayActivity

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface GatewayActivity
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type GatewayActivity } from "https://deno.land/x/discord_api_types@0.37.19/payloads/v8/gateway.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: ActivityPlatform
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)