import { type APIApplicationCommand } from "https://deno.land/x/discord_api_types@0.37.98/payloads/mod.ts";
Properties
1-32 character name; CHAT_INPUT
command names must be all lowercase matching ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$
Localization dictionary for the name field. Values follow the same restrictions as name
1-100 character description for CHAT_INPUT
commands, empty string for USER
and MESSAGE
commands
Localization dictionary for the description field. Values follow the same restrictions as description
Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible
Whether the command is enabled by default when the app is added to a guild
If missing, this property should be assumed as true
Installation context(s) where the command is available, only for globally-scoped commands. Defaults to GUILD_INSTALL ([0])
Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands [0,1,2]
.