import { ApplicationCommandManager } from "https://deno.land/x/higa@0.1.2/deno/client/index.ts";
Constructors
Properties
readonly
version: APIVersionsAPI Version
Methods
bulkOverwriteGlobalApplicationCommands(applicationId: string, options: ApplicationCommandOptions[]): Promise<ApplicationCommand[]>
Overwrites the global application commands
bulkOverwriteGuildApplicationCommands(): Promise<ApplicationCommand[]>
Overwrite guild application commands
createGlobalApplicationCommand(applicationId: string, options: ApplicationCommandOptions): Promise<ApplicationCommand>
Create a global application command
createGuildApplicationCommand(): Promise<ApplicationCommand>
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>
Edit a global application command
editGuildApplicationCommand(): Promise<ApplicationCommand>
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[]>
Get a list of commands for a guild application