Skip to main content
Latest
interface Activity
Re-export
import { type Activity } from "https://deno.land/x/discordeno_cache_plugin@0.0.21/deps.ts";

Properties

name: string

The activity's name

Activity type

optional
url: string | null

Stream url, is validated when type is 1

createdAt: number

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

optional
timestamps: ActivityTimestamps

Unix timestamps for start and/or end of the game

optional
applicationId: string

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
emoji: ActivityEmoji | null

The emoji used for a custom status

optional
party: ActivityParty

Information for the current party of the player

optional
assets: ActivityAssets

Images for the presence and their hover texts

optional
secrets: ActivitySecrets

Secrets for Rich Presence joining and spectating

optional
instance: boolean

Whether or not the activity is an instanced game session

optional
flags: number

Activity flags ORd together, describes what the payload includes

optional
buttons: ActivityButton[]

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