CommandHandler

Signature

export declare class CommandHandler extends BaseHandler

Properties

filter: (path: string) => boolean;

Filters a file path.

Parameters
path
The path to filter.
Returns

`true` if the path passes the filter, otherwise `false`.

Methods

reloadAll(stopIfFail?: boolean): Promise<void>;
shouldUpload(file: string, guildId?: string): Promise<boolean>;
protected getLocales(locale: string): ("id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi")[];
protected getLocaleKey(locale: string, key: string, context: string): string | undefined;