The options for creating a new CommandHandler instance.

interface CreateCommandHandlerOptions {
    commandsDir: string;
    eventsDir: string;
    owners?: string[];
    prefixes?: string[];
    saveLogsInFile?: string[];
    useMentionAsPrefix?: boolean;
}

Properties

commandsDir: string

The directory of your commands.

eventsDir: string

The directory of your events.

owners?: string[]

The owners IDs from discord of the bot.

prefixes?: string[]

The prefixes for the CommandHandler.

saveLogsInFile?: string[]

Save all the logs in these files.

Remarks

If one of the files is not found, it will create it.

useMentionAsPrefix?: boolean

Add mention of the bot as prefixes.

Default Value

true

Generated using TypeDoc