DiscordInteractionData
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordInteractionData
Interface: DiscordInteractionData
Properties
component_type?
optional
component_type:MessageComponentTypes
The type of component
Defined in
packages/types/dist/types/discord.d.ts:1861
components?
optional
components:DiscordMessageComponents
The components if its a Modal Submit interaction.
Defined in
packages/types/dist/types/discord.d.ts:1865
custom_id?
optional
custom_id:string
The custom id provided for this component.
Defined in
packages/types/dist/types/discord.d.ts:1863
guild_id?
optional
guild_id:string
the id of the guild the command is registered to
Defined in
packages/types/dist/types/discord.d.ts:1881
id
id:
string
The Id of the invoked command
Defined in
packages/types/dist/types/discord.d.ts:1869
name
name:
string
The name of the invoked command
Defined in
packages/types/dist/types/discord.d.ts:1871
options?
optional
options:DiscordInteractionDataOption
[]
The params + values from the user
Defined in
packages/types/dist/types/discord.d.ts:1877
resolved?
optional
resolved:DiscordInteractionDataResolved
Converted users + roles + channels + attachments
Defined in
packages/types/dist/types/discord.d.ts:1875
target_id?
optional
target_id:string
The target id if this is a context menu command.
Defined in
packages/types/dist/types/discord.d.ts:1879
type
type:
ApplicationCommandTypes
the type of the invoked command
Defined in
packages/types/dist/types/discord.d.ts:1873
values?
optional
values:string
[]
The values chosen by the user.
Defined in
packages/types/dist/types/discord.d.ts:1867