Skip to main content
Module

x/harmony/mod.ts>SlashCommand

An easy to use Discord API Library for Deno.
Latest
class SlashCommand
import { SlashCommand } from "https://deno.land/x/harmony@v2.9.0/mod.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