Skip to main content

DiscordInteractionData

Documentation


Documentation / @discordeno/types / DiscordInteractionData

Interface: DiscordInteractionData

Defined in: discord/interactions.ts:106

https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-object-application-command-data-structure https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-object-message-component-data-structure https://docs.discord.com/developers/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure

Properties

component_type?

optional component_type?: MessageComponentTypes

Defined in: discord/interactions.ts:128

The type of Message Component


components?

optional components?: DiscordMessageComponentFromModalInteractionResponse[]

Defined in: discord/interactions.ts:134

The components if its a Modal Submit interaction.


custom_id?

optional custom_id?: string

Defined in: discord/interactions.ts:126

The custom id provided for this component.


guild_id?

optional guild_id?: string

Defined in: discord/interactions.ts:120

the id of the guild the command is registered to


id

id: string

Defined in: discord/interactions.ts:109

The Id of the invoked command


name

name: string

Defined in: discord/interactions.ts:111

The name of the invoked command


options?

optional options?: DiscordInteractionDataOption[]

Defined in: discord/interactions.ts:118

The params + values from the user


resolved?

optional resolved?: DiscordInteractionDataResolved

Defined in: discord/interactions.ts:116

Converted users + roles + channels + attachments


target_id?

optional target_id?: string

Defined in: discord/interactions.ts:122

The target id if this is a context menu command.


type

type: ApplicationCommandTypes

Defined in: discord/interactions.ts:113

the type of the invoked command


values?

optional values?: string[]

Defined in: discord/interactions.ts:130

The values chosen by the user.