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

x/harmony/src/interactions/applicationCommand.ts>SlashCommand

An easy to use Discord API Library for Deno.
Go to Latest
class SlashCommand
import { SlashCommand } from "https://deno.land/x/harmony@v2.8.0/src/interactions/applicationCommand.ts";

Properties

applicationID: string
defaultPermission: boolean
optional
description: string
optional
guild: Guild
optional
guildID: string
id: string
name: string

Methods

delete(): Promise<void>
edit(data: ApplicationCommandPartial): Promise<void>
handle(func: ApplicationCommandHandlerCallback, options?: { parent?: string; group?: string; }): this

Create a handler for this Slash Command