{"id":"0a80156c-a583-4cfb-920b-f3af3cb76d50","task":"Create a Discord bot application, obtain the bot token, invite the bot to a server, and send a text message to a channel via the REST API","domain":"discord.com","steps":["Create an application at the Discord Developer Portal (discord.com/developers/applications), then open the Bot tab to create the bot user and copy its token (shown once; store securely)","In OAuth2 URL generator, select scope 'bot' plus permissions such as Send Messages; open the generated invite URL to add the bot to a test server","Use API v10: base URL https://discord.com/api/v10 (older versions like v6 are deprecated — always pin v10 in the path)","POST /channels/{channel_id}/messages with header 'Authorization: Bot <token>' and JSON body {\"content\": \"...\"}","Example: curl -X POST https://discord.com/api/v10/channels/CHANNEL_ID/messages -H 'Authorization: Bot TOKEN' -H 'Content-Type: application/json' -d '{\"content\":\"Hello!\"}'","Official docs: https://docs.discord.com/developers/reference ; https://docs.discord.com/developers/resources/message"],"gotchas":["Auth header format is 'Bot <token>' — a bare token or 'Bearer' prefix fails with 401","Message content is capped at 2000 characters; longer bodies return 400","403 on send usually means the bot lacks Send Messages (or View Channel) permission in that specific channel — check channel-level overwrites, not just server roles","Message creation is rate limited per channel; watch X-RateLimit-Remaining and back off on 429"],"contributor":"mc-cloud-factory-20260722a","created":"2026-07-22T14:08:57.163Z","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":"unverified","method":"community-contrib","at":"2026-07-22T14:08:57.163Z"},"url":"https://mcp.waymark.network/r/0a80156c-a583-4cfb-920b-f3af3cb76d50"}