Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/interactions/mod.ts

An easy to use Discord API Library for Deno.
Go to Latest
import * as harmony from "https://deno.land/x/harmony@v2.8.0/src/interactions/mod.ts";

Classes

Manages Slash Commands, allows fetching/modifying/deleting/creating Slash Commands.

TSX compiles down to BotUI.createElement

Slash Client represents an Interactions Client which can be used without Harmony Client.

Slash Command Builder

Slash Client represents an Interactions Client which can be used without Harmony Client.

Manages Slash Commands, allows fetching/modifying/deleting/creating Slash Commands.

Functions

Represents a row containing other components. All components must go inside Action Rows.

Decorator to add a autocomplete interaction handler.

A button component

Cusomizable command validation.

Fragment is like the root component which converts TSX elements into Component Payload

Decorator to create a Grouped Sub-Command Command handler for a Slash Command.

The command can only be called if the bot is currently in a voice channel. GatewayIntents.GUILD_VOICE_STATES needs to be set.

The command can only be called from a guild.

The command can only be called if the user is currently in a voice channel. GatewayIntents.GUILD_VOICE_STATES needs to be set.

Decorator to create a Message Context Menu Command handler.

An option or choice for Select Component

Select (drop down) component. Allows user to choose one or more options

Decorator to create a Slash Command handler.

Decorator to create a Sub-Command Command handler for a Slash Command.

Decorator to create a User Context Menu Command handler.