Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Application Command → Update Global

AI-generated

Summary

Update a global Discord application command using its application ID and command ID. Supply a raw JSON payload and optionally use typed fields to override matching values, including command type, slash-command options, localizations, contexts, installation types, permissions, DM availability, and NSFW status.

Inputs

  • Authentication — Select Bot Token (the default) or OAuth2 (User Token).
  • Application (required) — Discord application snowflake ID.
  • Command (required) — Discord application command snowflake ID.
  • Payload (required) — Raw Discord JSON request body; typed fields override matching payload keys.
  • Command Type — Chat Input (slash), User, or Message; defaults to Chat Input.
  • Command Options — For slash commands, configure options such as names, descriptions, types, required status, choices, constraints, channel types, localizations, and nested options.
  • Name and description localizations — Provide command localization maps as raw JSON or through guided locale entries; raw JSON wins on conflicting keys.
  • Contexts — Select interaction contexts where the global command can be used: GUILD, BOT_DM, or PRIVATE_CHANNEL.
  • Integration Types — Select installation contexts: GUILD_INSTALL or USER_INSTALL.
  • Default Member Permissions — Set permissions as a bitfield string or select guided permission flags; selected flags take precedence over the string.
  • DM Permission — Set the legacy setting for availability in bot DMs; defaults to true and is superseded by Contexts.
  • NSFW — Set whether the command is age-restricted; defaults to false.
  • Request Options — Configure request batching, SSL certificate validation, proxy, and timeout.

Output shape

A single Discord application command record.

The returned record reflects Discord's response to the update; the provided source view shows the operation's helper signatures but omits function bodies.

Links

Discussion