Skip to main content
Module

x/denord/mod.ts>Activity

🗣 Discord API module
Latest
interface Activity
import { type Activity } from "https://deno.land/x/denord@0.1.0/mod.ts";

Properties

name: string

the activity's name

type: number

activity type

optional
url: string

stream url, is validated when type is 1

createdAt: Date

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: ApplicationId

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

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: ActivityFlag

activity flags ORd together, describes what the payload includes