Activity
Documentation / @discordeno/bot / Activity
Interface: Activity
Defined in: transformers/types.ts:99
Properties
applicationId?
optionalapplicationId?:bigint
Defined in: transformers/types.ts:111
Application id for the game
assets?
optionalassets?:ActivityAssets
Defined in: transformers/types.ts:127
Images for the presence and their hover texts
buttons?
optionalbuttons?: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?
optionaldetails?:string
Defined in: transformers/types.ts:115
What the player is currently doing
detailsUrl?
optionaldetailsUrl?:string
Defined in: transformers/types.ts:117
URL that is linked when clicking on the details text
emoji?
optionalemoji?:ActivityEmoji
Defined in: transformers/types.ts:123
The emoji used for a custom status
flags?
optionalflags?:number
Defined in: transformers/types.ts:133
Activity flags ORd together, describes what the payload includes
instance?
optionalinstance?: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?
optionalparty?:DiscordActivityParty
Defined in: transformers/types.ts:125
Information for the current party of the player
secrets?
optionalsecrets?:DiscordActivitySecrets
Defined in: transformers/types.ts:129
Secrets for Rich Presence joining and spectating
state?
optionalstate?:string
Defined in: transformers/types.ts:119
The user's current party status
stateUrl?
optionalstateUrl?:string
Defined in: transformers/types.ts:121
URL that is linked when clicking on the state text
statusDisplayType?
optionalstatusDisplayType?:DiscordStatusDisplayType
Defined in: transformers/types.ts:113
Controls which field is displayed in the user's status text in the member list
timestamps?
optionaltimestamps?: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?
optionalurl?:string
Defined in: transformers/types.ts:105
Stream url, is validated when type is 1