Skip to content

Defined in: sdk/js/src/presence.ts:24

What the bot is doing. Build one with Activity.playing(…), Activity.listening(…), …

readonly data: Activity

Defined in: sdk/js/src/presence.ts:25

setDetails(details): Activity

Defined in: sdk/js/src/presence.ts:62

A second line, e.g. the track (≤ 128 characters).

string

Activity


setEmoji(emoji): Activity

Defined in: sdk/js/src/presence.ts:77

A Unicode emoji, for Activity.custom only.

string

Activity


setStartedAt(ms): Activity

Defined in: sdk/js/src/presence.ts:72

When it started, ms since the epoch (clients show the elapsed time).

number | bigint

Activity


setState(state): Activity

Defined in: sdk/js/src/presence.ts:67

A third line, e.g. the artist (≤ 128 characters).

string

Activity


static competing(name): Activity

Defined in: sdk/js/src/presence.ts:52

“Competing in {name}”.

string

Activity


static custom(text): Activity

Defined in: sdk/js/src/presence.ts:57

Free text, with an optional emoji (setEmoji).

string

Activity


static listening(name): Activity

Defined in: sdk/js/src/presence.ts:42

“Listening to {name}”.

string

Activity


static playing(name): Activity

Defined in: sdk/js/src/presence.ts:32

“Playing {name}”.

string

Activity


static streaming(name, url): Activity

Defined in: sdk/js/src/presence.ts:37

“Streaming {name}”, with an https:// link members may open (after confirming).

string

string

Activity


static watching(name): Activity

Defined in: sdk/js/src/presence.ts:47

“Watching {name}”.

string

Activity