Skip to main content
Module

x/higa/mod.ts>ApplicationCommandManager

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

Constructors

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

Properties

readonly
version: APIVersions

API Version

Methods

Overwrites the global application commands

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

Overwrite guild application commands

Create a global application command

createGuildApplicationCommand(
applicationId: string,
guildId: string,
): 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,
): Promise<GuildApplicationCommandPermissions[]>

Edit permissions for an application command

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

Edit a global application command

editGuildApplicationCommand(
applicationId: string,
guildId: string,
commandId: string,
): 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

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,
): Promise<ApplicationCommand[]>

Get a list of commands for a guild application