Hierarchy

Constructors

Methods

  • Delete a global application command.

    Parameters

    • applicationID: string

      The ID of the application.

    • commandID: string

      The ID ID the command to delete.

    Returns Promise<void>

  • Delete a guild application command.

    Parameters

    • applicationID: string

      The ID of the application.

    • guildID: string

      The ID of the guild.

    • commandID: string

      The ID of the command to delete.

    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

    • applicationID: string

      The ID of the application.

    • commandID: string

      The ID of the command.

    • Optional withLocalizations: W

      If localizations should be included.

    Returns Promise<T>

  • Get an application's global commands.

    Type Parameters

    • W extends boolean = false

    Parameters

    • applicationID: string

      The ID of the application.

    • Optional withLocalizations: W

      If localizations should be included.

    Returns Promise<AnyApplicationCommand<W>[]>

  • 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

    • applicationID: string

      The ID of the application.

    • 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>

  • Get an application's application commands in a specific guild.

    Type Parameters

    • W extends boolean = false

    Parameters

    • applicationID: string

      The ID of the application.

    • guildID: string

      The ID of the guild.

    • Optional withLocalizations: W

      If localizations should be included.

    Returns Promise<AnyApplicationCommand<W>[]>