Interfacehttpv0.1.0
InteractionGateContext
The interaction gate context on the HTTP transport. It extends the scalar GateContextBase with the raw interaction payload and the user and member the payload carries. Repliable narrows which handlers a gate attaches to, inferred from the ctx annotation, so a gate reading button fields is rejected on a slash handler.
The http transport delivers no role-derived permission sets, so memberGuildPermissions and appGuildPermissions are absent. A gate requiring GuildPermissionsContext (a permission gate with in: 'guild') is a compile error on an http handler.
interface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GateContextBaseProperties
Repliable
The interaction type the gate reads, narrowing which handlers accept it.
Repliable extends Repliables = Repliablesreadonly core: Corereadonly interaction: Repliablereadonly kind: 'interaction'readonly member: APIInteractionGuildMember | nullreadonly user: APIUser