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

x/harmony/src/interactions/mod.ts>SlashBuilder

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

Slash Command Builder

Constructors

new
SlashBuilder(
name?: string,
description?: string,
options?: SlashBuilderOptionsData,
)

Properties

data: ApplicationCommandPartial

Methods

description(desc: string): SlashBuilder
export(): ApplicationCommandPartial
name(name: string): SlashBuilder
option(option: SlashOptionCallable | ApplicationCommandOption): SlashBuilder
options(options: SlashBuilderOptionsData): SlashBuilder