Represents an interaction.
Extends
BaseConstructs a new instance of the
BaseInteraction
className | Type | Optional | Description |
---|---|---|---|
client | Client<true> | No | None |
data | RawInteractionData | No | None |
Readonly
channel:CacheTypeReducer<
Cached,
GuildTextBasedChannel | null,
GuildTextBasedChannel | null,
GuildTextBasedChannel | null,
TextBasedChannel | null
>
The channel this interaction was sent in
Indicates whether or not this interaction is both cached and received from a guild.
Indicates whether this interaction is received from a guild.
Indicates whether or not this interaction is received from an uncached guild.
Indicates whether this interaction is a select menu of any known type.
Indicates whether this interaction is an AutocompleteInteraction
Indicates whether this interaction is a ButtonInteraction.
Indicates whether this interaction is a ChannelSelectMenuInteraction
Indicates whether this interaction is a ChatInputCommandInteraction.
Indicates whether this interaction is a CommandInteraction
Indicates whether this interaction is a ContextMenuCommandInteraction
Indicates whether this interaction is a MentionableSelectMenuInteraction
Indicates whether this interaction is a MessageComponentInteraction
Indicates whether this interaction is a MessageContextMenuCommandInteraction
Indicates whether this interaction is a ModalSubmitInteraction
Indicates whether this interaction can be replied to.
Indicates whether this interaction is a RoleSelectMenuInteraction
Use isStringSelectMenu instead.
Deprecated
Indicates whether this interaction is a StringSelectMenuInteraction.
Indicates whether this interaction is a UserContextMenuCommandInteraction
Indicates whether this interaction is a UserSelectMenuInteraction
Name | Type | Optional | Description |
---|---|---|---|
...props | Record<string, boolean | string>[] | No | None |