DiscordActivity
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordActivity
Interface: DiscordActivity
https://discord.com/developers/docs/events/gateway-events#activity-object
Properties
application_id?
optional
application_id:string
Application id for the game
Defined in
packages/types/dist/types/discord.d.ts:1095
assets?
optional
assets:DiscordActivityAssets
Images for the presence and their hover texts
Defined in
packages/types/dist/types/discord.d.ts:1101
buttons?
optional
buttons:DiscordActivityButton
[]
The custom buttons shown in the Rich Presence (max 2)
Defined in
packages/types/dist/types/discord.d.ts:1105
created_at
created_at:
number
Unix timestamp of when the activity was added to the user's session
Defined in
packages/types/dist/types/discord.d.ts:1083
details?
optional
details:null
|string
What the player is currently doing
Defined in
packages/types/dist/types/discord.d.ts:1085
emoji?
optional
emoji:null
|DiscordActivityEmoji
The emoji used for a custom status
Defined in
packages/types/dist/types/discord.d.ts:1097
flags?
optional
flags:number
Activity flags OR
d together, describes what the payload includes
Defined in
packages/types/dist/types/discord.d.ts:1091
instance?
optional
instance:boolean
Whether or not the activity is an instanced game session
Defined in
packages/types/dist/types/discord.d.ts:1089
name
name:
string
The activity's name
Defined in
packages/types/dist/types/discord.d.ts:1077
party?
optional
party:DiscordActivityParty
Information for the current party of the player
Defined in
packages/types/dist/types/discord.d.ts:1099
secrets?
optional
secrets:DiscordActivitySecrets
Secrets for Rich Presence joining and spectating
Defined in
packages/types/dist/types/discord.d.ts:1103
state?
optional
state:null
|string
The user's current party status
Defined in
packages/types/dist/types/discord.d.ts:1087
timestamps?
optional
timestamps:DiscordActivityTimestamps
Unix timestamps for start and/or end of the game
Defined in
packages/types/dist/types/discord.d.ts:1093
type
type:
ActivityTypes
Activity type
Defined in
packages/types/dist/types/discord.d.ts:1079
url?
optional
url:null
|string
Stream url, is validated when type is 1
Defined in
packages/types/dist/types/discord.d.ts:1081