Interfacehttpv0.1.0-next.0
InteractionGateContext
The interaction gate context on the HTTP transport. It extends the scalar GateContextBaseGateContextBase with the raw interaction payload and the user and member the payload carries. RepliableRepliable narrows which handlers a gate attaches to, inferred from the ctxctx annotation, so a gate reading button fields is rejected on a slash handler.
The http transport delivers no role-derived permission sets, so memberGuildPermissionsmemberGuildPermissions and appGuildPermissionsappGuildPermissions are absent. A gate requiring GuildPermissionsContextGuildPermissionsContext (a permission gate with in: 'guild'in: 'guild') is a compile error on an http handler.
interface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GateContextBaseinterface InteractionGateContext<
Repliable extends Repliables = Repliables
> extends GateContextBaseProperties
Repliable
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: APIInteractionGuildMember | nullreadonly member: APIInteractionGuildMember | null