Skip to main content
Version: 1.x

CommandKitConfiguration

CommandKitConfiguration

Configurations for the CommandKit instance.

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

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[] | RegExp>

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