Creates a new guild-specific application command. Command names must be unique per type within the guild (max 100 total commands).
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).
guild_idRequiredstringThe unique identifier (snowflake ID) of the guild.
descriptionstring1-100 character description for CHAT_INPUT commands. Empty string or omit for USER/MESSAGE.
dm_permissionbooleanWhether the command is available in DMs. Only for globally-scoped commands.
application_idRequiredstringThe unique identifier (snowflake ID) of the Discord application.
name_localizationsobjectLocalization dictionary mapping locale codes to localized names.
description_localizationsobjectLocalization dictionary mapping locale codes to localized descriptions.
default_member_permissionsstringBitwise permission flags string. '0' disables for non-admins.
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.