import { type DiscordApplicationCommandOption } from "https://dotland.deno.dev/x/discordeno@18.0.1/template/beginner/deps.ts";
Properties
Name of command, 1-32 characters.
ApplicationCommandTypes.ChatInput
command names must match the following regex ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$
with the unicode flag set.
If there is a lowercase variant of any letters used, you must use those.
Characters with no lowercase variants and/or uncased letters are still allowed.
ApplicationCommandTypes.Userand
ApplicationCommandTypes.Message` commands may be mixed case and can include spaces.
Choices for the option types ApplicationCommandOptionTypes.String
, ApplicationCommandOptionTypes.Integer
, and ApplicationCommandOptionTypes.Number
, from which the user can choose, max 25
If autocomplete interactions are enabled for this option.
Only available for ApplicationCommandOptionTypes.String
, ApplicationCommandOptionTypes.Integer
and ApplicationCommandOptionTypes.Number
option types
If the option type is ApplicationCommandOptionTypes.Integer
or ApplicationCommandOptionTypes.Number
, the minimum permitted value
If the option type is ApplicationCommandOptionTypes.Integer
or ApplicationCommandOptionTypes.Number
, the maximum permitted value