Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discord_rpc_deno/deps.ts>GatewayActivity

port of @xhayper/discord-rpc to deno
Latest
interface GatewayActivity
Re-export
import { type GatewayActivity } from "https://deno.land/x/discord_rpc_deno@v1.1.4/deps.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

The Spotify song id

optional
platform: string

The platform this activity is being done on

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, or the text used for a custom status

optional
emoji: GatewayActivityEmoji
optional
session_id: string
optional
party: GatewayActivityParty
optional
assets: GatewayActivityAssets
optional
secrets: GatewayActivitySecrets
optional
instance: boolean

Whether or not the activity is an instanced game session

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

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