DiscordActivity
Documentation / @discordeno/bot / DiscordActivity
Interface: DiscordActivity
Defined in: packages/types/dist/types/discord.d.ts:1078
https://discord.com/developers/docs/events/gateway-events#activity-object
Properties
application_id?
optional
application_id:string
Defined in: packages/types/dist/types/discord.d.ts:1098
Application id for the game
assets?
optional
assets:DiscordActivityAssets
Defined in: packages/types/dist/types/discord.d.ts:1104
Images for the presence and their hover texts
buttons?
optional
buttons:DiscordActivityButton
[]
Defined in: packages/types/dist/types/discord.d.ts:1108
The custom buttons shown in the Rich Presence (max 2)
created_at
created_at:
number
Defined in: packages/types/dist/types/discord.d.ts:1086
Unix timestamp of when the activity was added to the user's session
details?
optional
details:null
|string
Defined in: packages/types/dist/types/discord.d.ts:1088
What the player is currently doing
emoji?
optional
emoji:null
|DiscordActivityEmoji
Defined in: packages/types/dist/types/discord.d.ts:1100
The emoji used for a custom status
flags?
optional
flags:number
Defined in: packages/types/dist/types/discord.d.ts:1094
Activity flags OR
d together, describes what the payload includes
instance?
optional
instance:boolean
Defined in: packages/types/dist/types/discord.d.ts:1092
Whether or not the activity is an instanced game session
name
name:
string
Defined in: packages/types/dist/types/discord.d.ts:1080
The activity's name
party?
optional
party:DiscordActivityParty
Defined in: packages/types/dist/types/discord.d.ts:1102
Information for the current party of the player
secrets?
optional
secrets:DiscordActivitySecrets
Defined in: packages/types/dist/types/discord.d.ts:1106
Secrets for Rich Presence joining and spectating
state?
optional
state:null
|string
Defined in: packages/types/dist/types/discord.d.ts:1090
The user's current party status
timestamps?
optional
timestamps:DiscordActivityTimestamps
Defined in: packages/types/dist/types/discord.d.ts:1096
Unix timestamps for start and/or end of the game
type
type:
ActivityTypes
Defined in: packages/types/dist/types/discord.d.ts:1082
Activity type
url?
optional
url:null
|string
Defined in: packages/types/dist/types/discord.d.ts:1084
Stream url, is validated when type is 1