DiscordInteractionData
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?
optionalcomponent_type?:MessageComponentTypes
Defined in: discord/interactions.ts:128
The type of Message Component
components?
optionalcomponents?:DiscordMessageComponentFromModalInteractionResponse[]
Defined in: discord/interactions.ts:134
The components if its a Modal Submit interaction.
custom_id?
optionalcustom_id?:string
Defined in: discord/interactions.ts:126
The custom id provided for this component.
guild_id?
optionalguild_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?
optionaloptions?:DiscordInteractionDataOption[]
Defined in: discord/interactions.ts:118
The params + values from the user
resolved?
optionalresolved?:DiscordInteractionDataResolved
Defined in: discord/interactions.ts:116
Converted users + roles + channels + attachments
target_id?
optionaltarget_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?
optionalvalues?:string[]
Defined in: discord/interactions.ts:130
The values chosen by the user.