Discord Bot
Send messages, embeds, files and reactions to Discord channels and DMs from any AI agent via the Discord REST API. 13 tools, Bot Token auth. Outbound + lightweight channel/guild reads (no gateway / websocket / voice).
7 æ¥éç¡æ · ã¯ã¬ãžããã«ãŒãäžèŠ Â· EU ãã¹ã
Discord ã«äœã§ãèãã
AnythingMCP çµç±ã§ Discord Bot ã«å®éã®ããã³ããã詊ãã â Claude ãããŒã«ãåŒã³åºããåçããŸããããªãã®ã¡ãã»ãŒãžã§ Enter ãæŒããš Cloud ã«ã€ã³ã¹ããŒã«ããŸãã
Discord ã Cloud ã«ã€ã³ã¹ããŒã«Claude 㯠AI ã®ãã誀ãããšããããŸããåçãã確èªãã ããã
2 åã§ã»ããã¢ãã
- 1cloud.anythingmcp.com ã§ç¡æãã©ã€ã¢ã«éå§ã
- 2ã³ãã¯ã¿ãŒã¹ãã¢ã§ Discord Bot ãã¯ãªãã¯ãè³æ Œæ å ±ã貌ãä»ãã
- 3MCP API ããŒãçºè¡ããAI ã¯ã©ã€ã¢ã³ãã MCP URL ã«åããã
Discord ã®ã¬ã€ã
äž»èŠ AI ã¯ã©ã€ã¢ã³ãåãã®ã¹ããããã€ã¹ãããã»ããã¢ããã
Discord Bot ã®ã»ããã¢ãã
ã³ãã¯ã¿å®çŸ©ãã®ãã®ããïŒèªèšŒæ å ±ã®å ¥æå ãå¿ èŠãªæš©éããã®ã¢ããã¿ãåŒã³åºã APIã ã³ãã¯ã¿äœè ã«ããè±èªã§æäŸãããŠããŸãã
This connector uses the Discord REST API v10 (https://discord.com/developers/docs).
Setup:
- Open https://discord.com/developers/applications â New Application â name it (this becomes the app, not the bot).
- Sidebar â Bot â Reset Token â copy the token. Treat as a secret â anyone with it can act as the bot.
- Sidebar â Installation (or OAuth2 â URL Generator in older UI): pick scope
bot, then permissions like Send Messages, Embed Links, Attach Files, Read Message History, Add Reactions, View Channels. Open the generated URL in a browser to install the bot into a server (you must be admin or have Manage Server). Repeat per server. - Set
DISCORD_BOT_TOKENto the token from step 2.
Authentication: header Authorization: Bot {{DISCORD_BOT_TOKEN}} â note the literal Bot prefix (NOT Bearer). The adapter sets this header via authType=API_KEY with the Authorization header name.
Snowflake IDs: every channel, guild, user, message in Discord is a numeric snowflake (~18-19 digits, string-typed). Discover them via discord_bot_list_guilds â discord_bot_list_guild_channels â drill down. In the Discord client, enable Developer Mode (User Settings â Advanced) and right-click any object â 'Copy ID' to grab snowflakes manually.
Channel types: 0=text, 2=voice, 4=category, 5=announcement, 11=public thread, 12=private thread, 13=stage, 15=forum. Messages can be sent to text (0), announcement (5), threads (11/12), forum posts (15 via thread).
Sending a message â embeds vs content:
content: plain text (Markdown supported, †2000 chars).embeds: rich card with title/description/color/fields/image/timestamp (up to 10 per message, each †6000 chars total). Use embeds for structured data (release notes, alerts, dashboards).
File attachments: must be uploaded as multipart in the same request â NOT supported in a single tool call here. Workaround: host the file on a public URL and include it as an embed image or a hyperlink in the content. For attaching the file itself, do the multipart upload externally and pass the resulting message_id.
Threads vs channels: threads are child channels of a parent channel; the API treats them like channels (same endpoint /channels/{id}/messages). The thread_id IS the channel_id.
Rate limits: per-route AND global. Discord returns X-RateLimit-Remaining / X-RateLimit-Reset-After headers. On 429, wait the retry_after seconds. Hard cap: 50 req/sec global per token.
Permission errors (50001 / 50013): bot needs the right server permission in the channel. Adjust the bot's role permissions or grant per-channel overrides.
DMs to users: you can't DM a user out of the blue â you must first call discord_bot_create_dm_channel with the user_id to open a DM channel, then send to that channel_id. The user must also share at least one server with the bot.
Inbound / gateway / voice / slash commands: out of scope here. The Discord WebSocket gateway (for receiving messages, presence, voice) and Interactions endpoints (slash commands) need a long-running process or a registered interactions webhook â separate plan.
ããªãã® AI 㯠Discord Bot ãã 2 ã¯ãªãã¯å ã
ã³ãã¯ã¿ãŒãã€ã³ã¹ããŒã«ãè³æ Œæ å ±ã貌ãä»ããAI ã«è³ªåã7 æ¥éç¡æãã¯ã¬ãžããã«ãŒãäžèŠã