blackcat.js-discord - v1.0.10
    Preparing search index...

    Interface CommandBuilderOptions

    Options khởi tạo cho CommandBuilder.

    interface CommandBuilderOptions {
        aliases?: string[];
        category?: string;
        commandName?: string;
        cooldown?: CooldownConfig<"message">;
        description?: string;
        execute?: (client: Client, message: Message<true>, args: string[]) => any;
        usage?: string;
        userPermission?: CommandPermissionConfig;
    }
    Index

    Properties

    aliases?: string[]

    Danh sách alias của command.

    category?: string

    Category dùng để phân loại command.

    commandName?: string

    Tên chính của command.

    cooldown?: CooldownConfig<"message">

    Cấu hình cooldown.

    description?: string

    Mô tả command.

    execute?: (client: Client, message: Message<true>, args: string[]) => any

    Handler thực thi command.

    Type Declaration

      • (client: Client, message: Message<true>, args: string[]): any
      • Parameters

        • client: Client

          Discord client

        • message: Message<true>

          Message trigger command

        • args: string[]

          Command arguments

        Returns any

    usage?: string

    Hướng dẫn sử dụng command.

    userPermission?: CommandPermissionConfig

    Permission yêu cầu của user.