InteractionGateContext
The interaction arm. RepliableRepliable is the interaction type the gate supports, inferred from the ctxctx annotation, so a gate reading button-specific fields is rejected on a slash handler. interactioninteraction is the reply target, so useruser is always present. Use NonModalInteractionNonModalInteraction to exclude ModalSubmit when the gate needs a reliable caller member or channel.
interface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GateContextBaseinterface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GateContextBaseRepliable
The interaction type the gate reads, narrowing which handlers accept it.
Repliable extends Repliables = RepliablesRepliable extends Repliables = RepliableschannelId
The channel id, or null when the source carries none.
Inherited from:GateContextBase
core
The running framework, for reaching the bot, config, the rate limiter, and the bus.
Inherited from:GateContextBase
guild
The guild the action happened in, or null in a DM or a guildless event.
Inherited from:GateContextBase
guildId
The guild id, or null outside a guild.
Inherited from:GateContextBase
readonly interaction: Repliablereadonly interaction: Repliablereadonly kind: 'interaction'readonly kind: 'interaction'member
The acting member, or null outside a guild or when uncached.
readonly member: GuildMember | nullreadonly member: GuildMember | nullInherited from:GateContextBase