Translates BaseOptions, ChannelOptions, and LengthOptions into API-compatible ResultOptions. You should not need to use this class directly; use the opts member instead.

Properties

Internally used to build and store translation result.

Internally stores provided argument data.

Methods

  • Set whether to enable argument autocompletion.

    Parameters

    • Optional enabled: boolean

    Returns void

  • Set the channel types supported by the channel argument.

    Parameters

    • Optional types: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[]

    Returns void

  • Set the possible values of the argument.

    Parameters

    • Optional choices: string[] | number[]

    Returns void

  • Set the description of the argument.

    Parameters

    • Optional desc: string

    Returns void

  • Get a property value from the argument.

    Parameters

    • property: "name" | "desc" | "localName" | "localDesc" | "req" | "channelTypes" | "range" | "choices" | "autocomplete"

    Returns any

  • Set the localized descriptions of the argument.

    Parameters

    • Optional descs: Partial<Record<"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", null | string>>

    Returns void

  • Set the localized names of the argument.

    Parameters

    • Optional names: Partial<Record<"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", null | string>>

    Returns void

  • Set the name of the argument.

    Parameters

    • Optional name: string

    Returns void

  • Set the minimum and/or maximum values/lengths of the argument.

    Parameters

    • Optional range: [number?, number?]

    Returns void

  • Set whether the argument is required.

    Parameters

    • Optional required: boolean

    Returns void

Generated using TypeDoc