Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApplicationCommand

Hierarchy

Index

Constructors

Properties

client: Client

The client that instantiated this structure

Raw command data

guild: undefined | Guild

The guild this command is part of

Accessors

  • get applicationId(): string
  • Unique id of the parent application

    Returns string

  • The default bitfield used to determine whether this command be used in a guild

    Returns PermissionsBitField

  • get description(): string
  • The description of the command

    Returns string

  • get descriptionLocalizations(): undefined | null | Partial<Record<"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" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>
  • Localization dictionary for the description field

    Returns undefined | null | Partial<Record<"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" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>

  • get dmPermission(): undefined | null | boolean
  • Whether the command can be used in dms

    Returns undefined | null | boolean

  • get guildId(): undefined | string
  • The guild's Id this command is part of, this may be non-null when guild is null

    Returns undefined | string

  • get id(): string
  • Unique Id of the command

    Returns string

  • get name(): string
  • The name of the command

    Returns string

  • get nameLocalizations(): undefined | null | Partial<Record<"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" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>
  • Localization dictionary for the name field

    Returns undefined | null | Partial<Record<"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" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>

Methods

  • clone(): any
  • Returns any

  • delete(): Promise<undefined>
  • Deletes this command

    Returns Promise<undefined>

  • Edits this application command

    example
    command.edit({ description: 'Shows the bot latency.' })
    

    Parameters

    Returns Promise<ApplicationCommand>

  • Fetches this command

    Returns Promise<ApplicationCommand>

  • Edits the dm permission of this ApplicationCommand

    Parameters

    • dmPermission: boolean = true

    Returns Promise<ApplicationCommand>

  • Edits the default member permissions of this ApplicationCommand

    Parameters

    Returns Promise<ApplicationCommand>

  • Edits the description of this ApplicationCommand

    Parameters

    • description: string

    Returns Promise<ApplicationCommand>

  • Edits the name of this ApplicationCommand

    Parameters

    • name: string

    Returns Promise<ApplicationCommand>

  • toString(): string
  • Return the command name and options name

    Returns string

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:15 AM