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