Skip to main content

DiscordActivity

@discordeno/bot


Documentation / @discordeno/bot / DiscordActivity

Interface: DiscordActivity

Defined in: packages/types/dist/types/discord/gateway.d.ts:585

https://discord.com/developers/docs/events/gateway-events#activity-object

Properties

application_id?

optional application_id: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:605

Application id for the game


assets?

optional assets: DiscordActivityAssets

Defined in: packages/types/dist/types/discord/gateway.d.ts:611

Images for the presence and their hover texts


buttons?

optional buttons: DiscordActivityButton[]

Defined in: packages/types/dist/types/discord/gateway.d.ts:615

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


created_at

created_at: number

Defined in: packages/types/dist/types/discord/gateway.d.ts:593

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/gateway.d.ts:595

What the player is currently doing


emoji?

optional emoji: null | DiscordActivityEmoji

Defined in: packages/types/dist/types/discord/gateway.d.ts:607

The emoji used for a custom status


flags?

optional flags: number

Defined in: packages/types/dist/types/discord/gateway.d.ts:601

Activity flags ORd together, describes what the payload includes


instance?

optional instance: boolean

Defined in: packages/types/dist/types/discord/gateway.d.ts:599

Whether or not the activity is an instanced game session


name

name: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:587

The activity's name


party?

optional party: DiscordActivityParty

Defined in: packages/types/dist/types/discord/gateway.d.ts:609

Information for the current party of the player


secrets?

optional secrets: DiscordActivitySecrets

Defined in: packages/types/dist/types/discord/gateway.d.ts:613

Secrets for Rich Presence joining and spectating


state?

optional state: null | string

Defined in: packages/types/dist/types/discord/gateway.d.ts:597

The user's current party status


timestamps?

optional timestamps: DiscordActivityTimestamps

Defined in: packages/types/dist/types/discord/gateway.d.ts:603

Unix timestamps for start and/or end of the game


type

type: ActivityTypes

Defined in: packages/types/dist/types/discord/gateway.d.ts:589

Activity type


url?

optional url: null | string

Defined in: packages/types/dist/types/discord/gateway.d.ts:591

Stream url, is validated when type is 1