Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
interface Command
import { type Command } from "https://deno.land/x/discordeno@18.0.1/template/beginner/src/types/mod.ts";

Properties

name: string

The name of this command.

description: string

What does this command do?

The type of command this is.

optional
devOnly: boolean

Whether or not this command is for the dev server only.

optional
options: ApplicationCommandOption[]

The options for this command

execute: (bot: BotClient, interaction: Interaction) => unknown

This will be executed when the command is run.