Creates a new global Discord application command. Global commands can take up to an hour to propagate. Command names must be unique per type within the application scope.
nameRequiredstring1-32 character command name. For CHAT_INPUT commands, must be lowercase.
typeintegerCommand type: 1 (CHAT_INPUT, default), 2 (USER), 3 (MESSAGE).
optionsarrayArray of command option objects (max 25). Each must have name, description, and type fields.
descriptionstring1-100 character description for CHAT_INPUT commands. Empty string or omit for USER/MESSAGE commands.
dm_permissionbooleanWhether the command is available in DMs (global commands only). Defaults to true.
application_idRequiredstringThe unique identifier (snowflake ID) of the Discord application.
name_localizationsobjectLocalization dictionary mapping locale codes to localized names (1-32 chars each).
description_localizationsobjectLocalization dictionary mapping locale codes to localized descriptions (1-100 chars each).
default_member_permissionsstringBitwise permission flags string a member needs. '0' disables for non-admins. Null allows everyone.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.