CIRCE / DOCUMENTATION
ComponentContext
What a component handler receives, including typed params.
interface ComponentContext<I extends ComponentInteraction = ComponentInteraction, Params = undefined> {
readonly interaction: I; // button or select menu interaction
readonly client: Client;
readonly guild: Guild | null;
readonly member: GuildMember | null;
readonly user: User;
readonly logger: Logger;
readonly correlationId: string | undefined;
readonly t: Translator;
readonly params: Params;
}
Same shared fields as CommandContext, plus:
| Field | Notes |
|---|---|
params |
Typed from pattern ({ ticketId: string }) or from your parse(customId). undefined for a plain prefix route. |
See Components.
