PresenceActivity

interface PresenceActivity

Activity included in a Discord presence update.

exported from lib.weeble.d

Properties

Property

Type

Description

application_id?

string

Application ID for this activity, when Discord includes one.

assets?

Record<string, unknown>

Image asset metadata for rich presence activities.

buttons?

unknown[]

Buttons displayed on this activity.

created_at?

number

Unix timestamp in milliseconds when this activity was added.

details?

string | null

Activity details line, or null when not provided.

emoji?

EmojiData | null

Emoji shown with a custom status, or null when not set.

flags?

number

Activity flags bitfield.

instance?

boolean

Whether this activity is an instanced game session.

name?

string

Activity name shown by Discord.

party?

Record<string, unknown>

Party metadata for rich presence activities.

secrets?

Record<string, unknown>

Join/spectate secrets for rich presence activities.

state?

string | null

Activity state text. For custom status, this is the custom status text.

timestamps?

Record<string, unknown>

Activity start/end timestamps supplied by Discord.

type?

ActivityType

Activity type such as playing, streaming, listening, watching, or custom.

url?

string | null

Stream URL for streaming activities, or null when not applicable.