Skip to main content

Activity

Documentation


Documentation / @discordeno/bot / Activity

Interface: Activity

Defined in: transformers/types.ts:99

Properties

applicationId?

optional applicationId?: bigint

Defined in: transformers/types.ts:111

Application id for the game


assets?

optional assets?: ActivityAssets

Defined in: transformers/types.ts:127

Images for the presence and their hover texts


buttons?

optional buttons?: ActivityButton[]

Defined in: transformers/types.ts:135

The custom buttons shown in the Rich Presence (max 2)


createdAt

createdAt: number

Defined in: transformers/types.ts:107

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


details?

optional details?: string

Defined in: transformers/types.ts:115

What the player is currently doing


detailsUrl?

optional detailsUrl?: string

Defined in: transformers/types.ts:117

URL that is linked when clicking on the details text


emoji?

optional emoji?: ActivityEmoji

Defined in: transformers/types.ts:123

The emoji used for a custom status


flags?

optional flags?: number

Defined in: transformers/types.ts:133

Activity flags ORd together, describes what the payload includes


instance?

optional instance?: boolean

Defined in: transformers/types.ts:131

Whether or not the activity is an instanced game session


name

name: string

Defined in: transformers/types.ts:101

The activity's name


party?

optional party?: DiscordActivityParty

Defined in: transformers/types.ts:125

Information for the current party of the player


secrets?

optional secrets?: DiscordActivitySecrets

Defined in: transformers/types.ts:129

Secrets for Rich Presence joining and spectating


state?

optional state?: string

Defined in: transformers/types.ts:119

The user's current party status


stateUrl?

optional stateUrl?: string

Defined in: transformers/types.ts:121

URL that is linked when clicking on the state text


statusDisplayType?

optional statusDisplayType?: DiscordStatusDisplayType

Defined in: transformers/types.ts:113

Controls which field is displayed in the user's status text in the member list


timestamps?

optional timestamps?: DiscordActivityTimestamps

Defined in: transformers/types.ts:109

Unix timestamps for start and/or end of the game


type

type: ActivityTypes

Defined in: transformers/types.ts:103

Activity type


url?

optional url?: string

Defined in: transformers/types.ts:105

Stream url, is validated when type is 1