Discord icon

Discord

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

Actions193

Application Command → Create Guild

AI-generated

Summary

Create a guild-scoped Discord application command using the supplied command payload and optional guided fields. The node sends the request for the specified application and guild, with guided values overriding matching payload keys.

Inputs

  • Authentication — Choose Bot Token (the default) or OAuth2 user token credentials.
  • Application (required) — Discord application ID.
  • Guild (required) — Discord guild ID where the command will be created.
  • Payload (required) — Raw Discord JSON request body for the command. Guided fields override matching keys.
  • Command Type — Command type: Chat Input (slash, default), User, or Message.
  • Command Options — For chat input commands, define slash options such as their type, name, description, required status, constraints, choices, localizations, channel types, or nested options.
  • Name Localizations — Set localized command names with the guided locale builder or a JSON locale-to-name object. Raw JSON values win on conflicts.
  • Description Localizations — Set localized command descriptions with the guided locale builder or a JSON locale-to-description object. Raw JSON values win on conflicts.
  • Default Member Permissions — Specify permission flags with the guided selector or provide a stringified permission bitfield. Selected flags take precedence; use "0" to disable the command for everyone by default.
  • NSFW — Whether the command is age-restricted; defaults to false.

Output shape

a single Discord application command record

The command is created in the specified guild; the response body follows Discord's create-command endpoint.

Links

Discussion