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

x/harmony/src/interactions/decorators.ts

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

Functions

Decorator to add a autocomplete interaction handler.

Cusomizable command validation.

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.

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.