Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
import * as discordeno from "https://deno.land/x/discordeno@13.0.0-rc45/helpers/interactions/commands/mod.ts";

Functions

There are two kinds of Application Commands: global commands and guild commands. Global commands are available for every guild that adds your app; guild commands are specific to the guild you specify when making them. Command names are unique per application within each scope (global and guild). That means:

Deletes a application command.

To delete your response to a application command. If a message id is not provided, it will default to deleting the original response.

Edits command permissions for a specific command for your application in a guild.

To edit your response to a application command. If a messageId is not provided it will default to editing the original response.

Fetches the global command for the given Id. If a guildId is provided, the guild command will be fetched.

Fetches command permissions for a specific command for your application in a guild. Returns a GuildApplicationCommandPermissions object.

Fetches command permissions for all commands for your application in a guild. Returns an array of GuildApplicationCommandPermissions objects.

Fetch all the commands for your application. If a guild id is not provided, it will fetch global commands.

Edit an existing application command. If this command did not exist, it will create it.

Bulk edit existing application commands. If a command does not exist, it will create it.