Skip to main content

Activity

Documentation


Documentation / @discordeno/bot / Activity

Interface: Activity

Defined in: transformers/types.ts:100

Properties​

applicationId?​

optional applicationId?: bigint

Defined in: transformers/types.ts:112

Application id for the game


assets?​

optional assets?: ActivityAssets

Defined in: transformers/types.ts:128

Images for the presence and their hover texts


buttons?​

optional buttons?: ActivityButton[]

Defined in: transformers/types.ts:136

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


createdAt​

createdAt: number

Defined in: transformers/types.ts:108

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


details?​

optional details?: string

Defined in: transformers/types.ts:116

What the player is currently doing


detailsUrl?​

optional detailsUrl?: string

Defined in: transformers/types.ts:118

URL that is linked when clicking on the details text


emoji?​

optional emoji?: ActivityEmoji

Defined in: transformers/types.ts:124

The emoji used for a custom status


flags?​

optional flags?: number

Defined in: transformers/types.ts:134

Activity flags ORd together, describes what the payload includes


instance?​

optional instance?: boolean

Defined in: transformers/types.ts:132

Whether or not the activity is an instanced game session


name​

name: string

Defined in: transformers/types.ts:102

The activity's name


party?​

optional party?: DiscordActivityParty

Defined in: transformers/types.ts:126

Information for the current party of the player


secrets?​

optional secrets?: DiscordActivitySecrets

Defined in: transformers/types.ts:130

Secrets for Rich Presence joining and spectating


state?​

optional state?: string

Defined in: transformers/types.ts:120

The user's current party status


stateUrl?​

optional stateUrl?: string

Defined in: transformers/types.ts:122

URL that is linked when clicking on the state text


statusDisplayType?​

optional statusDisplayType?: DiscordStatusDisplayType

Defined in: transformers/types.ts:114

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


timestamps?​

optional timestamps?: DiscordActivityTimestamps

Defined in: transformers/types.ts:110

Unix timestamps for start and/or end of the game


type​

type: ActivityTypes

Defined in: transformers/types.ts:104

Activity type


url?​

optional url?: string

Defined in: transformers/types.ts:106

Stream url, is validated when type is 1