import { ApplicationCommandsManager } from "https://deno.land/x/harmony@v2.8.0/src/interactions/applicationCommand.ts";
Manages Slash Commands, allows fetching/modifying/deleting/creating Slash Commands.
Constructors
new
ApplicationCommandsManager(client: InteractionsClient)Properties
readonly
permissions: ApplicationCommandPermissionsManagerreadonly
rest: RESTManagerreadonly
slash: InteractionsClientMethods
all(): Promise<Collection<string, ApplicationCommand>>
Get all Global Slash Commands
bulkEdit(cmds: Array<ApplicationCommandPartial & { id?: string; }>, guild?: Guild | string): Promise<Collection<string, ApplicationCommand>>
Bulk Edit Global or Guild Slash Commands
create(data: ApplicationCommandPartial, guild?: Guild | string): Promise<ApplicationCommand>
Create a Slash Command (global or Guild)
delete(id: string, guild?: Guild | string): Promise<ApplicationCommandsManager>
Delete a Slash Command (global or Guild)
edit(): Promise<ApplicationCommand>
Edit a Slash Command (global or Guild)
for(guild: Guild | string): GuildApplicationCommandsManager
get(id: string, guild?: Guild | string): Promise<ApplicationCommand>
Get a Slash Command (global or Guild)
guild(guild: Guild | string): Promise<Collection<string, ApplicationCommand>>
Get a Guild's Slash Commands
[Symbol.asyncIterator](): AsyncIterableIterator<ApplicationCommand>