Unique id of the parent application
OptionalcontextsInteraction context(s) where the command can be used, only for globally-scoped commands
Set of permissions represented as a bitset
Optionaldefault_Whether the command is enabled by default when the app is added to a guild
If missing, this property should be assumed as true
Use APIApplicationCommand.dm_permission and/or APIApplicationCommand.default_member_permissions instead
1-100 character description for CHAT_INPUT commands, empty string for USER and MESSAGE commands
Optionaldescription_Localization dictionary for the description field. Values follow the same restrictions as description
Optionaldescription_The localized description
Optionaldm_Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible
Use APIApplicationCommand.contexts instead
Optionalguild_Guild id of the command, if not global
OptionalhandlerDetermines whether the interaction is handled by the app's interactions handler or by Discord
This is only available for ApplicationCommandType.PrimaryEntryPoint commands
Unique id of the command
Optionalintegration_Installation context(s) where the command is available, only for globally-scoped commands
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}$
Optionalname_Localization dictionary for the name field. Values follow the same restrictions as name
Optionalname_The localized name
OptionalnsfwIndicates whether the command is age-restricted
OptionaloptionsThe parameters for the CHAT_INPUT command, max 25
Type of the command
Autoincrementing version identifier updated during substantial record changes
See
https://discord.com/developers/docs/interactions/application-commands#application-command-object