POST /applications/{application_id}/commands

Changed on

Request

  • Base URL
    https://discord.com/api/v10
  • Auth
    • API key in header Authorization
    • or OAuth 2
      Authorization code: https://discord.com/api/oauth2/authorize
      Client credentials
      Implicit: https://discord.com/api/oauth2/authorize
      Token URL: https://discord.com/api/oauth2/token scopes: applications.commands.update

Request body

namestring required
name_localizationsobject nullable
descriptionstring nullable
description_localizationsobject nullable
default_member_permissionsinteger nullable
dm_permissionboolean nullable

Response

200 response for create_application_command

idstring snowflake required
application_idstring snowflake required
versionstring snowflake required
default_member_permissionsstring nullable required
namestring required
name_localizedstring
name_localizationsobject nullable
descriptionstring required
description_localizedstring
description_localizationsobject nullable
guild_idstring snowflake
dm_permissionboolean
nsfwboolean

Changes

    • info

      added the new optional request property //////

    • info

      added the new optional request property //////////////

    • info

      added the new optional request property ////////////

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////////////// to the response with the status

    • info

      added the optional property ////////////// to the response with the status

    • info

      added the optional property //////////// to the response with the status

    • info

      added the optional property //////////// to the response with the status

    • info

      added subschema #1: APP_HANDLER subschema #2: DISCORD_LAUNCH_ACTIVITY to the //// request property oneOf list

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status