Skip to content

BaseVariables

Defined in: types/context.ts:11

Base variables that the library uses

optional autocomplete?: ChatInputCommandInteraction<BaseInteractionContext>

Defined in: types/context.ts:13

Set for the duration of an autocomplete request. Access via c.var.autocomplete.


cache: CacheManager

Defined in: types/context.ts:26

The cache manager for this context, if available. This will be populated by the library if a cache adapter is provided in the environment.

It is always given, but if no cache adapter is provided, it will be using the NullCacheAdapter which does not actually cache anything and always returns null for get and false for has.


optional command?: ChatInputCommandInteraction<BaseInteractionContext>

Defined in: types/context.ts:15

Set for the duration of a slash command interaction. Access via c.var.command.


optional component?: TMessageComponentInteraction

Defined in: types/context.ts:19

Set for the duration of a message component interaction. Access via c.var.component.


optional modal?: ModalInteraction<BaseInteractionContext>

Defined in: types/context.ts:17

Set for the duration of a modal submit interaction. Access via c.var.modal.