interface GuildPermissionsContext extends GateContextBaseinterface GuildPermissionsContext extends GateContextBaseappPermissions
The bot's permissions in the invoked channel, the wire app_permissionsapp_permissions value. Null on gateway events.
Inherited from:GateContextBase
channelId
The channel id, or null when the source carries none.
Inherited from:GateContextBase
core
Gates read the config and the rate limiter through it.
Inherited from:GateContextBase
guildId
The guild id, or null outside a guild.
Inherited from:GateContextBase
memberPermissions
The member's permission bits, or null outside a guild. On an interaction these are the channel-scoped permissions the payload contains, on a gateway event 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.
Inherited from:GateContextBase
routeId
The dispatched handler as kind:routekind:route (slash:dailyslash:daily, button:confirmbutton:confirm), or null off a route (a plain event handler, or a gate run outside a handler). runHandlerGatesrunHandlerGates sets it from the handler's metadata. CooldownCooldown uses it so its window is stable across restarts and isolates.
Inherited from:GateContextBase
userId
The acting user's id, or null on an event that carries none.
Inherited from:GateContextBase