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. A gate reading button fields, inferred from its ctx annotation, 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 GateContextBaseRepliable
The interaction type the gate reads, narrowing which handlers accept it.
Repliable extends Repliables = RepliablesappPermissions
The bot's permissions in the invoked channel, the wire app_permissions value. Null on gateway events.
Inherited from:GateContextBase
channelId
The channel id, or null when the source carries none.
Inherited from:GateContextBase
readonly core: CoreguildId
The guild id, or null outside a guild.
Inherited from:GateContextBase
readonly interaction: Repliablereadonly kind: 'interaction'readonly member: APIInteractionGuildMember | nullmemberPermissions
The member's permission bits, or null outside a guild. On an interaction these are the channel-scoped permissions the payload contains, and on a gateway event they're the member's guild-level ones.
Inherited from:GateContextBase
memberRoleIds
The member's role ids without the everyone role, the shape a raw interaction payload contains. Empty outside a guild or when the source contains none.
readonly memberRoleIds: readonly string[]Inherited from:GateContextBase
routeId
The dispatched handler as kind:route (slash:daily, button:confirm), or null off a route (a plain event handler, or a gate run outside a handler). runHandlerGates sets it from the handler's metadata. Cooldown uses it so its window is stable across restarts and isolates.
Inherited from:GateContextBase
readonly user: APIUseruserId
The acting user's id, or null on an event that carries none.
Inherited from:GateContextBase