import { ApplicationCommandManager } from "https://deno.land/x/higa@0.1.2/deno/client/managers/ApplicationCommandManager.ts";
Methods
bulkOverwriteGlobalApplicationCommands(applicationId: string, options: ApplicationCommandOptions[]): Promise<ApplicationCommand[]>
Overwrites the global application commands
bulkOverwriteGuildApplicationCommands(): Promise<ApplicationCommand[]>
applicationId: string,
guildId: string,
options: ApplicationCommandOptions[],
Overwrite guild application commands
createGlobalApplicationCommand(applicationId: string, options: ApplicationCommandOptions): Promise<ApplicationCommand>
Create a global application command
createGuildApplicationCommand(): Promise<ApplicationCommand>
applicationId: string,
guildId: string,
options: ApplicationCommandOptions,
Create a new application command for a guild
deleteGlobalApplicationCommand(applicationId: string, commandId: string): Promise<void>
Delete a global application command
deleteGuildApplicationCommand(): Promise<void>
applicationId: string,
guildId: string,
commandId: string,
Delete a guild application command
editApplicationCommandPermissions(): Promise<GuildApplicationCommandPermissions[]>
applicationId: string,
guildId: string,
commandId: string,
bearerToken: string,
options: EditPermissionsOptions,
Edit permissions for an application command
editGlobalApplicationCommand(): Promise<ApplicationCommand>
applicationId: string,
commandId: string,
options: ApplicationCommandOptions,
Edit a global application command
editGuildApplicationCommand(): Promise<ApplicationCommand>
applicationId: string,
guildId: string,
commandId: string,
options: ApplicationCommandOptions,
Update a guild application command
getApplicationCommandPermissions(): Promise<GuildApplicationCommandPermissions[]>
applicationId: string,
guildId: string,
commandId: string,
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(): Promise<ApplicationCommand>
applicationId: string,
guildId: string,
commandId: string,
Get a guild application command
getGuildApplicationCommandPermissions(): Promise<GuildApplicationCommandPermissions[]>
applicationId: string,
guildId: string,
commandId: string,
Get permissions for a guild application command
getGuildApplicationCommands(): Promise<ApplicationCommand[]>
applicationId: string,
guildId: string,
options: GetApplicationCommandsOptions,
Get a list of commands for a guild application