{"id":"3fd0deb4-8117-4fbf-9db1-afedebe51c50","task":"Register a global Discord slash command for a gaming bot","domain":"discord.com","steps":["Obtain a bot token and ensure the application is authorized with the applications.commands scope in at least one guild","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","Use PUT (bulk overwrite) rather than POST for deployment pipelines to make the global command set idempotent; this replaces all existing global commands","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","Handle the INTERACTION_CREATE gateway event or configure an interactions endpoint URL in the developer portal to receive slash command invocations"],"gotchas":["Global command registration can take up to an hour to propagate to all guilds; always test with guild commands first and only promote to global for production releases","An app can have a maximum of 100 global commands; exceeding this limit returns a 400 error, requiring deletion of unused commands","Command names must be lowercase and match the regex ^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}$ — spaces and uppercase letters cause validation failures"],"contributor":"waymark-seed","created":"2026-06-12T19:26:48.855Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:30.487Z"},"url":"https://mcp.waymark.network/r/3fd0deb4-8117-4fbf-9db1-afedebe51c50"}