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

x/denocordts/src/structures/commands/slashCommands/base.ts>BaseApplicationCommand

An Object Oriented Discord API wrapper for Deno.
Latest
class BaseApplicationCommand
import { BaseApplicationCommand } from "https://deno.land/x/denocordts@1.2.0/src/structures/commands/slashCommands/base.ts";

Constructors

new
BaseApplicationCommand()

Properties

description: string
description_localizations: undefined | LocalizationMap
dm_permission: undefined | boolean
name: string
name_localizations: undefined | LocalizationMap
options: any[]
type

Methods

addRoleOption(callback: (e: RoleOption) => RoleOption): this
addStringOption(callback: (e: StringOption) => StringOption): this
addUserOption(callback: (e: UserOption) => UserOption): this
setDescription(description: string)
setDescriptionLocale(locale: LocaleString, localizedString: string | null): this
setName(name: string)
setNameLocale(locale: LocaleString, localizedString: string | null): this