[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-813cb5ab-d0cb-49e2-8fa4-1c4127bdeb2a":3,"$fkIl1us6IrmSsPp98mz-L-r6MOb-fQmyMwS-I8KCm6no":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"813cb5ab-d0cb-49e2-8fa4-1c4127bdeb2a","discord-automation","通过Rube MCP（Composio）自动化Discord任务：消息、频道、角色、webhooks、反应。始终首先搜索当前架构的工具。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: discord-automation\ndescription: \"Automate Discord tasks via Rube MCP (Composio): messages, channels, roles, webhooks, reactions. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Discord Automation via Rube MCP\n\nAutomate Discord operations through Composio's Discord\u002FDiscordbot toolkits via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Discord connection via `RUBE_MANAGE_CONNECTIONS` with toolkits `discord` and `discordbot`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `discordbot` (bot operations) or `discord` (user operations)\n3. If connection is not ACTIVE, follow the returned auth link to complete Discord auth\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Send Messages\n\n**When to use**: User wants to send messages to channels or DMs\n\n**Tool sequence**:\n1. `DISCORD_LIST_MY_GUILDS` - List guilds the bot belongs to [Prerequisite]\n2. `DISCORDBOT_LIST_GUILD_CHANNELS` - List channels in a guild [Prerequisite]\n3. `DISCORDBOT_CREATE_MESSAGE` - Send a message [Required]\n4. `DISCORDBOT_UPDATE_MESSAGE` - Edit a sent message [Optional]\n\n**Key parameters**:\n- `channel_id`: Channel snowflake ID\n- `content`: Message text (max 2000 characters)\n- `embeds`: Array of embed objects for rich content\n- `guild_id`: Guild ID for channel listing\n\n**Pitfalls**:\n- Bot must have SEND_MESSAGES permission in the channel\n- High-frequency sends can hit per-route rate limits; respect Retry-After headers\n- Only messages sent by the same bot can be edited\n\n### 2. Send Direct Messages\n\n**When to use**: User wants to DM a Discord user\n\n**Tool sequence**:\n1. `DISCORDBOT_CREATE_DM` - Create or get DM channel [Required]\n2. `DISCORDBOT_CREATE_MESSAGE` - Send message to DM channel [Required]\n\n**Key parameters**:\n- `recipient_id`: User snowflake ID for DM\n- `channel_id`: DM channel ID from CREATE_DM\n\n**Pitfalls**:\n- Cannot DM users who have DMs disabled or have blocked the bot\n- CREATE_DM returns existing channel if one already exists\n\n### 3. Manage Roles\n\n**When to use**: User wants to create, assign, or remove roles\n\n**Tool sequence**:\n1. `DISCORDBOT_CREATE_GUILD_ROLE` - Create a new role [Optional]\n2. `DISCORDBOT_ADD_GUILD_MEMBER_ROLE` - Assign role to member [Optional]\n3. `DISCORDBOT_DELETE_GUILD_ROLE` - Delete a role [Optional]\n4. `DISCORDBOT_GET_GUILD_MEMBER` - Get member details [Optional]\n5. `DISCORDBOT_UPDATE_GUILD_MEMBER` - Update member (roles, nick, etc.) [Optional]\n\n**Key parameters**:\n- `guild_id`: Guild snowflake ID\n- `user_id`: User snowflake ID\n- `role_id`: Role snowflake ID\n- `name`: Role name\n- `permissions`: Bitwise permission value\n- `color`: RGB color integer\n\n**Pitfalls**:\n- Role assignment requires MANAGE_ROLES permission\n- Target role must be lower in hierarchy than bot's highest role\n- DELETE permanently removes the role from all members\n\n### 4. Manage Webhooks\n\n**When to use**: User wants to create or use webhooks for external integrations\n\n**Tool sequence**:\n1. `DISCORDBOT_GET_GUILD_WEBHOOKS` \u002F `DISCORDBOT_LIST_CHANNEL_WEBHOOKS` - List webhooks [Optional]\n2. `DISCORDBOT_CREATE_WEBHOOK` - Create a new webhook [Optional]\n3. `DISCORDBOT_EXECUTE_WEBHOOK` - Send message via webhook [Optional]\n4. `DISCORDBOT_UPDATE_WEBHOOK` - Update webhook settings [Optional]\n\n**Key parameters**:\n- `webhook_id`: Webhook ID\n- `webhook_token`: Webhook secret token\n- `channel_id`: Channel for webhook creation\n- `name`: Webhook name\n- `content`\u002F`embeds`: Message content for execution\n\n**Pitfalls**:\n- Webhook tokens are secrets; handle securely\n- Webhooks can post with custom username and avatar per message\n- MANAGE_WEBHOOKS permission required for creation\n\n### 5. Manage Reactions\n\n**When to use**: User wants to view or manage message reactions\n\n**Tool sequence**:\n1. `DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI` - List users who reacted [Optional]\n2. `DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS` - Remove all reactions [Optional]\n3. `DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS_BY_EMOJI` - Remove specific emoji reactions [Optional]\n4. `DISCORDBOT_DELETE_USER_MESSAGE_REACTION` - Remove specific user's reaction [Optional]\n\n**Key parameters**:\n- `channel_id`: Channel ID\n- `message_id`: Message snowflake ID\n- `emoji_name`: URL-encoded emoji or `name:id` for custom emojis\n- `user_id`: User ID for specific reaction removal\n\n**Pitfalls**:\n- Unicode emojis must be URL-encoded (e.g., '%F0%9F%91%8D' for thumbs up)\n- Custom emojis use `name:id` format\n- DELETE_ALL requires MANAGE_MESSAGES permission\n\n## Common Patterns\n\n### Snowflake IDs\n\nDiscord uses snowflake IDs (64-bit integers as strings) for all entities:\n- Guilds, channels, users, roles, messages, webhooks\n\n### Permission Bitfields\n\nPermissions are combined using bitwise OR:\n- SEND_MESSAGES = 0x800\n- MANAGE_ROLES = 0x10000000\n- MANAGE_MESSAGES = 0x2000\n- ADMINISTRATOR = 0x8\n\n### Pagination\n\n- Most list endpoints support `limit`, `before`, `after` parameters\n- Messages: max 100 per request\n- Reactions: max 100 per request, use `after` for pagination\n\n## Known Pitfalls\n\n**Bot vs User Tokens**:\n- `discordbot` toolkit uses bot tokens; `discord` uses user OAuth\n- Bot operations are preferred for automation\n\n**Rate Limits**:\n- Discord enforces per-route rate limits\n- Respect `Retry-After` headers on 429 responses\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| List guilds | DISCORD_LIST_MY_GUILDS | (none) |\n| List channels | DISCORDBOT_LIST_GUILD_CHANNELS | guild_id |\n| Send message | DISCORDBOT_CREATE_MESSAGE | channel_id, content |\n| Edit message | DISCORDBOT_UPDATE_MESSAGE | channel_id, message_id |\n| Get messages | DISCORDBOT_LIST_MESSAGES | channel_id, limit |\n| Create DM | DISCORDBOT_CREATE_DM | recipient_id |\n| Create role | DISCORDBOT_CREATE_GUILD_ROLE | guild_id, name |\n| Assign role | DISCORDBOT_ADD_GUILD_MEMBER_ROLE | guild_id, user_id, role_id |\n| Delete role | DISCORDBOT_DELETE_GUILD_ROLE | guild_id, role_id |\n| Get member | DISCORDBOT_GET_GUILD_MEMBER | guild_id, user_id |\n| Update member | DISCORDBOT_UPDATE_GUILD_MEMBER | guild_id, user_id |\n| Get guild | DISCORDBOT_GET_GUILD | guild_id |\n| Create webhook | DISCORDBOT_CREATE_WEBHOOK | channel_id, name |\n| Execute webhook | DISCORDBOT_EXECUTE_WEBHOOK | webhook_id, webhook_token |\n| List webhooks | DISCORDBOT_GET_GUILD_WEBHOOKS | guild_id |\n| Get reactions | DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI | channel_id, message_id, emoji_name |\n| Clear reactions | DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS | channel_id, message_id |\n| Test auth | DISCORDBOT_TEST_AUTH | (none) |\n| Get channel | DISCORDBOT_GET_CHANNEL | channel_id |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,193,1624,"2026-05-16 13:15:24",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"89d1cc4c-07df-4e0b-b5fc-bcc0c0da54da","1.0.0","discord-automation.zip",2855,"uploads\u002Fskills\u002F813cb5ab-d0cb-49e2-8fa4-1c4127bdeb2a\u002Fdiscord-automation.zip","15a540b6927f2cdb7571e7ca00d8f62a2d89798229f3dbbf92a4d15574112030","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":7448}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]