Skip to main content
Version: Next

CommandKitConfiguration

CommandKitConfiguration

Configurations for the CommandKit instance.

Signature
interface CommandKitConfiguration {
defaultLocale: Locale;
getMessageCommandPrefix: (message: Message) => Awaitable<string | string[]>;
}

defaultLocale

property
Locale
default:
Locale.EnglishUS

The default locale for the CommandKit instance. This will be used to infer the locale of the guild or user if it has not been set explicitly.

getMessageCommandPrefix

property
(message: Message) => Awaitable<string | string[]>

A function that returns the command prefix for a given message. This is used to determine how to parse commands from messages.