CommandKitConfiguration
CommandKitConfiguration
Configurations for the CommandKit instance.
Signature
interface CommandKitConfiguration {
defaultLocale: Locale;
getMessageCommandPrefix: (message: Message) => Awaitable<string | string[]>;
}
defaultLocale
property
Localedefault:
Locale.EnglishUSThe 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.