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

x/oasis/packages/deps.ts>DiscordActivity

An object oriented Discordeno framework
Latest
interface DiscordActivity
Re-export
import { type DiscordActivity } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";

Properties

name: string

The activity's name

Activity type

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
details: string | null

What the player is currently doing

optional
state: string | null

The user's current party status

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
timestamps: DiscordActivityTimestamps

Unix timestamps for start and/or end of the game

optional
application_id: string

Application id for the game

optional
emoji: DiscordActivityEmoji | null

The emoji used for a custom status

optional
party: DiscordActivityParty

Information for the current party of the player

optional
assets: DiscordActivityAssets

Images for the presence and their hover texts

optional
secrets: DiscordActivitySecrets

Secrets for Rich Presence joining and spectating

optional
buttons: DiscordActivityButton[]

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