Discord icon

Discord

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

Actions193

Application Command → Update Guild

AI-generated

Summary

Updates an existing guild application command for the specified application and guild. Supply the command ID and a raw JSON payload; optional typed fields build or override command settings, including command type, slash-command options, localizations, permissions, and NSFW status.

Inputs

  • Authentication — Select Bot Token (default) or OAuth2 (User Token).
  • Application (required) — Application snowflake ID.
  • Guild (required) — Guild snowflake ID where the command is registered.
  • Command (required) — Application command snowflake ID to update.
  • Payload (required) — Raw Discord JSON request body. Typed fields override matching keys in this payload.
  • Command Type — Command type: Chat Input (slash, default), User, or Message.
  • Command Options — For slash commands, add option definitions such as names, descriptions, types, required status, choices, bounds, channel types, localizations, or nested options.
  • Name and description localizations — Set localized command names and descriptions using the guided locale entries or JSON maps. Raw JSON values take precedence for matching locale keys.
  • Default Member Permissions — Set required permission flags with the guided selector or provide a stringified bitfield; selected flags take precedence.
  • NSFW — Mark the command as age-restricted.
  • Request Options — Configure batching, SSL certificate handling, proxy, and request timeout.

Output shape

a single Discord command record

The response body follows Discord's application command response; exact fields depend on Discord's response.

Examples

Example 1: Update a slash command's definition

Provide the application, guild, and command IDs, then submit the desired command fields in Payload. Use the typed fields to define slash options and permissions; these override matching payload keys.

Links

Discussion