Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApplicationCommandManager

Hierarchy

  • ApplicationCommandManager

Index

Methods

  • Overwrites the global application commands

    Parameters

    • applicationId: string

      The ID of the application you want to modify.

    • options: ApplicationCommandOptions[]

      ApplicationCommandOptions[]

    Returns Promise<ApplicationCommand[]>

    Array of ApplicationCommand objects.

  • Overwrite guild application commands

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to overwrite the application commands in.

    • options: ApplicationCommandOptions[]

      ApplicationCommandOptions[]

    Returns Promise<ApplicationCommand[]>

    ApplicationCommand[]

  • Create a global application command

    Parameters

    • applicationId: string

      The ID of the application you want to create a command for.

    • options: ApplicationCommandOptions

      CreateApplicationCommandOptions

    Returns Promise<ApplicationCommand>

    ApplicationCommand object.

  • Create a new application command for a guild

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to create the command in.

    • options: ApplicationCommandOptions

      ApplicationCommandOptions

    Returns Promise<ApplicationCommand>

    ApplicationCommand

  • deleteGlobalApplicationCommand(applicationId: string, commandId: string): Promise<void>
  • Delete a global application command

    Parameters

    • applicationId: string

      The ID of the application.

    • commandId: string

      The ID of the command you want to delete.

    Returns Promise<void>

  • deleteGuildApplicationCommand(applicationId: string, guildId: string, commandId: string): Promise<void>
  • Delete a guild application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to delete the application command from.

    • commandId: string

      The ID of the command you want to delete.

    Returns Promise<void>

  • Edit permissions for an application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to edit the permissions for.

    • commandId: string

      The ID of the command you want to edit the permissions for.

    • bearerToken: string
    • options: EditPermissionsOptions

      EditPermissionsOptions

    Returns Promise<GuildApplicationCommandPermissions[]>

    GuildApplicationCommandPermissions[]

  • Edit a global application command

    Parameters

    • applicationId: string

      The ID of the application you want to edit the command of.

    • commandId: string

      The ID of the command you want to edit.

    • options: ApplicationCommandOptions

      GetGlobalApplicationCommandsOptions

    Returns Promise<ApplicationCommand>

    ApplicationCommand object.

  • Update a guild application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to update the application command in.

    • commandId: string

      The ID of the command you want to update.

    • options: ApplicationCommandOptions

      ApplicationCommandOptions

    Returns Promise<ApplicationCommand>

    ApplicationCommand

  • Get permissions for an application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to get the permissions for.

    • commandId: string

      The ID of the command you want to get the permissions for.

    Returns Promise<GuildApplicationCommandPermissions[]>

    GuildApplicationCommandPermissions[]

  • getGlobalApplicationCommand(applicationId: string, commandId: string): Promise<ApplicationCommand>
  • Get a global application command

    Parameters

    • applicationId: string

      The ID of the application.

    • commandId: string

      The ID of the command you want to get.

    Returns Promise<ApplicationCommand>

    ApplicationCommand object.

  • Get a list of global application commands

    Parameters

    • applicationId: string

      The ID of the application you want to get the commands of.

    • options: GetApplicationCommandsOptions = {}

      GetGlobalApplicationCommandsOptions = {}

    Returns Promise<ApplicationCommand[]>

    Array of ApplicationCommand objects.

  • getGuildApplicationCommand(applicationId: string, guildId: string, commandId: string): Promise<ApplicationCommand>
  • Get a guild application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to get the application command from.

    • commandId: string

      The ID of the command you want to get.

    Returns Promise<ApplicationCommand>

    ApplicationCommand

  • Get permissions for a guild application command

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to get the permissions for.

    • commandId: string

      The ID of the command you want to get the permissions for.

    Returns Promise<GuildApplicationCommandPermissions[]>

    GuildApplicationCommandPermissions[]

  • Get a list of commands for a guild application

    Parameters

    • applicationId: string

      The ID of the application.

    • guildId: string

      The ID of the guild you want to get the commands from.

    • options: GetApplicationCommandsOptions

    Returns Promise<ApplicationCommand[]>

    Array of ApplicationCommand objects.

Constructors

  • Parameters

    • token: string

      Bot's token

    • tokenType: string
    • version: APIVersions

      API Version

    Returns ApplicationCommandManager

Properties

version: APIVersions

API Version

#token: string

Bot's token

#tokenType: string

Token type

Generated using TypeDoc