Extremely Popular
Go to Latest
interface DiscordActivity
import { type DiscordActivity } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/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)

import DiscordActivity
import { DiscordActivity } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts";