Skip to main content

DiscordInteractionResource

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordInteractionResource

Interface: DiscordInteractionResource

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-resource-object

Properties

activity_instance?

optional activity_instance: DiscordActivityInstanceResource

Represents the Activity launched by this interaction.

Remarks

Only present if type is LAUNCH_ACTIVITY.

Defined in

packages/types/dist/types/discord.d.ts:1840


message?

optional message: DiscordMessage

Message created by the interaction.

Remarks

Only present if type is either CHANNEL_MESSAGE_WITH_SOURCE or UPDATE_MESSAGE.

Defined in

packages/types/dist/types/discord.d.ts:1847


type

type: InteractionResponseTypes

Defined in

packages/types/dist/types/discord.d.ts:1833