Skip to main content
Module

x/discordeno/helpers/interactions/mod.ts

Discord API library for Deno
Go to Latest
import * as discordeno from "https://deno.land/x/discordeno@13.0.0-rc45/helpers/interactions/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.

Deletes a followup message for an Interaction. Functions the same as delete webhook message, however this uses your interaction token instead of bot token. Does not support ephemeral followups.

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.

Edits a followup message for an Interaction. Functions the same as edit webhook message, however this uses your interaction token instead of bot token. Does not support ephemeral followups.

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.

Returns a followup message for an Interaction. Functions the same as get webhook message, however this uses your interaction token instead of bot token. Does not support ephemeral followups.

Returns the initial Interaction response. Functions the same as Get Webhook Message

Send a response to a users application command. The command data will have the id and token necessary to respond. Interaction tokens are valid for 15 minutes and can be used to send followup messages.

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.

Interfaces