export interface APIApplicationCommand
https://discord.com/developers/docs/interactions/application-commands#application-command-object
externalSnowflake application_id :
Unique id of the parent application
optionalexternalInteractionContextType[] | null contexts? :
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]
.
externalPermissions | null default_member_permissions :
Set of permissions represented as a bitset
deprecatedoptionalexternalboolean default_permission? :
Use dm_permission
and/or default_member_permissions
instead
Whether the command is enabled by default when the app is added to a guildIf missing, this property should be assumed as true
optionalexternalLocalizationMap | null description_localizations? :
Localization dictionary for the description field. Values follow the same restrictions as description
optionalexternalstring description_localized? :
The localized description
externalstring description :
1-100 character description for CHAT_INPUT
commands, empty string for USER
and MESSAGE
commands
deprecatedoptionalexternalboolean dm_permission? :
Use contexts
instead
Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible
optionalexternalSnowflake guild_id? :
Guild id of the command, if not global
optionalexternalEntryPointCommandHandlerType handler? :
Determines whether the interaction is handled by the app's interactions handler or by Discord
externalSnowflake id :
Unique id of the command
optionalexternalApplicationIntegrationType[] integration_types? :
Installation context(s) where the command is available, only for globally-scoped commands. Defaults to GUILD_INSTALL ([0])
optionalexternalLocalizationMap | null name_localizations? :
Localization dictionary for the name field. Values follow the same restrictions as name
optionalexternalstring name_localized? :
The localized name
externalstring name :
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}$
optionalexternalboolean nsfw? :
Indicates whether the command is age-restricted, defaults to false
optionalexternalAPIApplicationCommandOption[] options? :
The parameters for the CHAT_INPUT
command, max 25
externalApplicationCommandType type :
Type of the command
externalSnowflake version :
Autoincrementing version identifier updated during substantial record changes