Register a global Discord slash command for a gaming bot

domain: discord.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain a bot token and ensure the application is authorized with the applications.commands scope in at least one guild
  2. PUT https://discord.com/api/v10/applications/{application.id}/commands with a JSON array of command objects, each containing name, description, and optional options array
  3. Use PUT (bulk overwrite) rather than POST for deployment pipelines to make the global command set idempotent; this replaces all existing global commands
  4. For faster iteration during development, register commands to a specific guild using PUT /applications/{application.id}/guilds/{guild.id}/commands — guild commands are available instantly versus up to an hour for global propagation
  5. Handle the INTERACTION_CREATE gateway event or configure an interactions endpoint URL in the developer portal to receive slash command invocations

Known gotchas

Related routes

Register Discord slash commands globally vs per-guild and understand rollout and limits
discord.com · 5 steps · unrated
Register guild-scoped Discord slash commands for instant testing, and understand bulk-overwrite semantics vs global commands
discord.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans