A representation of the authorized client's application (typically recieved via gateway).

Hierarchy

Constructors

Properties

flags: number

This application's public flags.

id: string

Accessors

Methods

  • Delete a global application command.

    Parameters

    • commandID: string

      The ID of the command.

    Returns Promise<void>

  • Delete a guild application command.

    Parameters

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command.

    Returns Promise<void>

  • Get a global application command.

    Type Parameters

    • W extends boolean = false

    • T extends Omit<ApplicationCommand<CHAT_INPUT>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<USER>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<MESSAGE>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<CHAT_INPUT>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } | Omit<ApplicationCommand<USER>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } | Omit<ApplicationCommand<MESSAGE>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } = AnyApplicationCommand<W>

    Parameters

    • commandID: string

      The ID of the command.

    • Optional withLocalizations: W

      If localizations should be included.

    Returns Promise<T>

  • Get a global application command.

    Type Parameters

    • W extends boolean = false

    • T extends Omit<ApplicationCommand<CHAT_INPUT>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<USER>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<MESSAGE>, "descriptionLocalizations" | "nameLocalizations"> | Omit<ApplicationCommand<CHAT_INPUT>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } | Omit<ApplicationCommand<USER>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } | Omit<ApplicationCommand<MESSAGE>, "descriptionLocalizations" | "nameLocalizations"> & { descriptionLocalizations: null | Record<string, string>; nameLocalizations: null | Record<string, string> } = AnyApplicationCommand<W>

    Parameters

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command.

    • Optional withLocalizations: W

      If localizations should be included.

    Returns Promise<T>