Interfacegatewayv0.1.0-next.3
InteractionGateContext
The interaction arm. It extends GuildPermissionsContextGuildPermissionsContext with the live interaction and the djs objects resolved from the gateway cache. 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 GuildPermissionsContextinterface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GuildPermissionsContextRepliable
The interaction type the gate reads, narrowing which handlers accept it.
Repliable extends Repliables = RepliablesRepliable extends Repliables = Repliablesreadonly interaction: Repliablereadonly interaction: Repliablereadonly kind: 'interaction'readonly kind: 'interaction'readonly member: GuildMember | nullreadonly member: GuildMember | null