Skip to main content
Latest
interface DiscordenoActivity
Re-export
import { type DiscordenoActivity } 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

Stream url, is validated when type is 1

createdAt: number

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

optional
startedAt: number

Unix time (in milliseconds) of when the activity started

optional
endedAt: number

Unix time (in milliseconds) of when the activity ends

optional
applicationId: bigint

Application id for the game

optional
details: string

What the player is currently doing

optional
state: string

The user's current party status

optional
emoji: DiscordenoEmoji

The emoji used for a custom status

optional
partyId: string

the id of the party

optional
partyCurrentSize: number

The current size of the party if one exists

optional
partyMaxSize: number

The max size of the party if one exists

optional
largeImage: string

The id for a large asset of the activity, usually a snowflake

optional
largeText: string

Text displayed when hovering over the large image of the activity

optional
smallImage: string

The id for a small asset of the activity, usually a snowflake

optional
smallText: string

Text displayed when hovering over the small image of the activity

optional
join: string

The secret for joining a party

optional
spectate: string

The secret for spectating a game

optional
match: string

The secret for a specific instanced match

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
buttonLabels: string[]

The custom button's labels shown in the Rich Presence