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

x/harmony/src/types/applicationCommand.ts>SlashCommandOptionType

An easy to use Discord API Library for Deno.
Latest
enum SlashCommandOptionType
import { SlashCommandOptionType } from "https://deno.land/x/harmony@v2.9.1/src/types/applicationCommand.ts";

Members

ATTACHMENT = 11

Attachment option type

BOOLEAN = 5

Boolean option type

CHANNEL = 7

Channel option type

INTEGER = 4

Integer option type

MENTIONABLE = 9

Union of User and Role option type

NUMBER = 10

Number option type, similar to JS Number. Can be both integer and float

ROLE = 8

Role option type

STRING = 3

String option type

SUB_COMMAND = 1

A sub command that is either a part of a root command or Sub Command Group

SUB_COMMAND_GROUP = 2

A sub command group that is present in root command's options

USER = 6

User option type