Skip to main content
Version: 1.x

CommandContext

CommandContext​

Represents a command context.

Signature
interface CommandContext<T extends Interaction, Cached extends CacheType> {
interaction: Interaction<CacheType>;
client: Client;
handler: CommandKit;
}

interaction​

property
Interaction<CacheType>

The interaction that triggered this command.

client​

property
Client

The client that instantiated this command.

handler​

property

The command data.