BaseVariables
Interface: BaseVariables
Section titled “Interface: BaseVariables”Defined in: types/context.ts:11
Base variables that the library uses
Properties
Section titled “Properties”autocomplete?
Section titled “autocomplete?”
optionalautocomplete?: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.
command?
Section titled “command?”
optionalcommand?:ChatInputCommandInteraction<BaseInteractionContext>
Defined in: types/context.ts:15
Set for the duration of a slash command interaction. Access via c.var.command.
component?
Section titled “component?”
optionalcomponent?:TMessageComponentInteraction
Defined in: types/context.ts:19
Set for the duration of a message component interaction. Access via c.var.component.
modal?
Section titled “modal?”
optionalmodal?:ModalInteraction<BaseInteractionContext>
Defined in: types/context.ts:17
Set for the duration of a modal submit interaction. Access via c.var.modal.
