DiscordInteractionData
Documentation / @discordeno/bot / DiscordInteractionData
Interface: DiscordInteractionData
Defined in: packages/types/dist/types/discord/interactions.d.ts:81
Properties
component_type?
optional
component_type:MessageComponentTypes
Defined in: packages/types/dist/types/discord/interactions.d.ts:83
The type of component
components?
optional
components:DiscordMessageComponents
Defined in: packages/types/dist/types/discord/interactions.d.ts:87
The components if its a Modal Submit interaction.
custom_id?
optional
custom_id:string
Defined in: packages/types/dist/types/discord/interactions.d.ts:85
The custom id provided for this component.
guild_id?
optional
guild_id:string
Defined in: packages/types/dist/types/discord/interactions.d.ts:103
the id of the guild the command is registered to
id
id:
string
Defined in: packages/types/dist/types/discord/interactions.d.ts:91
The Id of the invoked command
name
name:
string
Defined in: packages/types/dist/types/discord/interactions.d.ts:93
The name of the invoked command
options?
optional
options:DiscordInteractionDataOption
[]
Defined in: packages/types/dist/types/discord/interactions.d.ts:99
The params + values from the user
resolved?
optional
resolved:DiscordInteractionDataResolved
Defined in: packages/types/dist/types/discord/interactions.d.ts:97
Converted users + roles + channels + attachments
target_id?
optional
target_id:string
Defined in: packages/types/dist/types/discord/interactions.d.ts:101
The target id if this is a context menu command.
type
type:
ApplicationCommandTypes
Defined in: packages/types/dist/types/discord/interactions.d.ts:95
the type of the invoked command
values?
optional
values:string
[]
Defined in: packages/types/dist/types/discord/interactions.d.ts:89
The values chosen by the user.