import { type DiscordApplicationCommandOption } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/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.
Localization object for the name
field. Values follow the same restrictions as name
Localization object for the description
field. Values follow the same restrictions as description
Choices for the option types ApplicationCommandOptionTypes.String
, ApplicationCommandOptionTypes.Integer
, and ApplicationCommandOptionTypes.Number
, from which the user can choose, max 25
If the option is a subcommand or subcommand group type, these nested options will be the parameters
If autocomplete interactions are enabled for this option.
Only available for ApplicationCommandOptionTypes.String
, ApplicationCommandOptionTypes.Integer
and ApplicationCommandOptionTypes.Number
option types
If the option is a channel type, the channels shown will be restricted to these 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