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

    Class SlashSubCommandBuilder<TOptions>

    Builder dùng để định nghĩa một Slash Subcommand.

    Class này chịu trách nhiệm:

    • Khai báo metadata của subcommand
    • Build subcommand vào DiscordSlashCommandBuilder
    • Parse options từ ChatInputCommandInteraction

    Type Parameters

    • TOptions extends Record<string, any> | undefined = undefined

      kiểu object định nghĩa options của subcommand

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Khởi tạo SlashSubCommandBuilder.

      Type Parameters

      • TOptions extends Record<string, any> | undefined = undefined

        kiểu object định nghĩa options của subcommand

      Parameters

      • config: { description: string; options?: (option: OptionFactory) => TOptions }

        cấu hình subcommand

      Returns SlashSubCommandBuilder<TOptions>

    Properties

    description: string

    Mô tả của subcommand hiển thị trong Discord.