Discord icon

Discord

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

Actions193

Application Command → Create Global

AI-generated

Summary

Create a global Discord application command for the specified application, with command settings and optional slash-command options, localizations, contexts, installation types, permissions, and NSFW status. The operation uses a bot token by default; OAuth2 user-token authentication is also selectable.

Inputs

  • Authentication — Choose Bot Token (default) or OAuth2 (User Token).
  • Application (required) — Discord application ID.
  • Payload (required) — Raw Discord JSON request body. Typed fields can override matching payload keys.
  • Command Type — Chat Input (Slash), User, or Message; defaults to Chat Input.
  • Command Options — For slash commands, add options such as strings, numbers, users, channels, subcommands, and their constraints, choices, or localizations.
  • Name Localizations — Set localized command names using the guided locale builder, raw JSON, or both. Raw JSON takes precedence for matching locale keys.
  • Description Localizations — Set localized command descriptions using the guided locale builder, raw JSON, or both. Raw JSON takes precedence for matching locale keys.
  • Contexts — Choose interaction contexts where the global command can be used: GUILD, BOT_DM, or PRIVATE_CHANNEL.
  • Integration Types — Choose installation contexts: GUILD_INSTALL or USER_INSTALL.
  • Default Member Permissions (Flags) — Select permission flags required by default, or provide a stringified permission bitfield. Selected flags take precedence over the raw bitfield.
  • DM Permission — Legacy setting for whether the command is available in bot DMs; defaults to true and is superseded by Contexts.
  • NSFW — Whether the command is age-restricted; defaults to false.
  • Request Options — Optional request settings including batching, SSL certificate handling, proxy, and timeout.

Output shape

a single record

Contains the Discord API response for the created global application command.

Links

Discussion