Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/higa/deno/client/managers/ApplicationCommandManager.ts>ApplicationCommandManager

A package to interract with the Discord API coded by myself
Latest
class ApplicationCommandManager
import { ApplicationCommandManager } from "https://deno.land/x/higa@0.1.2/deno/client/managers/ApplicationCommandManager.ts";

Constructors

new
ApplicationCommandManager(
token: string,
tokenType: string,
version: APIVersions,
)

Properties

readonly
version: APIVersions

API Version

Methods

bulkOverwriteGlobalApplicationCommands(applicationId: string, options: ApplicationCommandOptions[]): Promise<ApplicationCommand[]>

Overwrites the global application commands

bulkOverwriteGuildApplicationCommands(
applicationId: string,
guildId: string,
options: ApplicationCommandOptions[],
): Promise<ApplicationCommand[]>

Overwrite guild application commands

createGlobalApplicationCommand(applicationId: string, options: ApplicationCommandOptions): Promise<ApplicationCommand>

Create a global application command

createGuildApplicationCommand(
applicationId: string,
guildId: string,
options: ApplicationCommandOptions,
): Promise<ApplicationCommand>

Create a new application command for a guild

deleteGlobalApplicationCommand(applicationId: string, commandId: string): Promise<void>

Delete a global application command

deleteGuildApplicationCommand(
applicationId: string,
guildId: string,
commandId: string,
): Promise<void>

Delete a guild application command

editApplicationCommandPermissions(
applicationId: string,
guildId: string,
commandId: string,
bearerToken: string,
options: EditPermissionsOptions,
): Promise<GuildApplicationCommandPermissions[]>

Edit permissions for an application command

editGlobalApplicationCommand(
applicationId: string,
commandId: string,
options: ApplicationCommandOptions,
): Promise<ApplicationCommand>

Edit a global application command

editGuildApplicationCommand(
applicationId: string,
guildId: string,
commandId: string,
options: ApplicationCommandOptions,
): Promise<ApplicationCommand>

Update a guild application command

getApplicationCommandPermissions(
applicationId: string,
guildId: string,
commandId: string,
): Promise<GuildApplicationCommandPermissions[]>

Get permissions for an application command

getGlobalApplicationCommand(applicationId: string, commandId: string): Promise<ApplicationCommand>

Get a global application command

getGlobalApplicationCommands(applicationId: string, options?: GetApplicationCommandsOptions): Promise<ApplicationCommand[]>

Get a list of global application commands

getGuildApplicationCommand(
applicationId: string,
guildId: string,
commandId: string,
): Promise<ApplicationCommand>

Get a guild application command

getGuildApplicationCommandPermissions(
applicationId: string,
guildId: string,
commandId: string,
): Promise<GuildApplicationCommandPermissions[]>

Get permissions for a guild application command

getGuildApplicationCommands(
applicationId: string,
guildId: string,
options: GetApplicationCommandsOptions,
): Promise<ApplicationCommand[]>

Get a list of commands for a guild application