Skip to main content

DiscordInteractionData

@discordeno/bot


Documentation / @discordeno/bot / DiscordInteractionData

Interface: DiscordInteractionData

Defined in: packages/types/dist/types/discord.d.ts:1862

Properties

component_type?

optional component_type: MessageComponentTypes

Defined in: packages/types/dist/types/discord.d.ts:1864

The type of component


components?

optional components: DiscordMessageComponents

Defined in: packages/types/dist/types/discord.d.ts:1868

The components if its a Modal Submit interaction.


custom_id?

optional custom_id: string

Defined in: packages/types/dist/types/discord.d.ts:1866

The custom id provided for this component.


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord.d.ts:1884

the id of the guild the command is registered to


id

id: string

Defined in: packages/types/dist/types/discord.d.ts:1872

The Id of the invoked command


name

name: string

Defined in: packages/types/dist/types/discord.d.ts:1874

The name of the invoked command


options?

optional options: DiscordInteractionDataOption[]

Defined in: packages/types/dist/types/discord.d.ts:1880

The params + values from the user


resolved?

optional resolved: DiscordInteractionDataResolved

Defined in: packages/types/dist/types/discord.d.ts:1878

Converted users + roles + channels + attachments


target_id?

optional target_id: string

Defined in: packages/types/dist/types/discord.d.ts:1882

The target id if this is a context menu command.


type

type: ApplicationCommandTypes

Defined in: packages/types/dist/types/discord.d.ts:1876

the type of the invoked command


values?

optional values: string[]

Defined in: packages/types/dist/types/discord.d.ts:1870

The values chosen by the user.