Discord Automation via Rube MCP
Selective Reading Rule
Start with:
references/senior-master-standard.md
references/usage-routing.md
references/quality-checklist.md
Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.
Automate Discord operations through Composio's Discord/Discordbot toolkits via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Discord connection via
RUBE_MANAGE_CONNECTIONS with toolkits discord and discordbot
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit discordbot (bot operations) or discord (user operations)
- If connection is not ACTIVE, follow the returned auth link to complete Discord auth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send Messages
When to use: User wants to send messages to channels or DMs
Tool sequence:
DISCORD_LIST_MY_GUILDS - List guilds the bot belongs to [Prerequisite]
DISCORDBOT_LIST_GUILD_CHANNELS - List channels in a guild [Prerequisite]
DISCORDBOT_CREATE_MESSAGE - Send a message [Required]
DISCORDBOT_UPDATE_MESSAGE - Edit a sent message [Optional]
Key parameters:
channel_id: Channel snowflake ID
content: Message text (max 2000 characters)
embeds: Array of embed objects for rich content
guild_id: Guild ID for channel listing
Pitfalls:
- Bot must have SEND_MESSAGES permission in the channel
- High-frequency sends can hit per-route rate limits; respect Retry-After headers
- Only messages sent by the same bot can be edited
2. Send Direct Messages
When to use: User wants to DM a Discord user
Tool sequence:
DISCORDBOT_CREATE_DM - Create or get DM channel [Required]
DISCORDBOT_CREATE_MESSAGE - Send message to DM channel [Required]
Key parameters:
recipient_id: User snowflake ID for DM
channel_id: DM channel ID from CREATE_DM
Pitfalls:
- Cannot DM users who have DMs disabled or have blocked the bot
- CREATE_DM returns existing channel if one already exists
3. Manage Roles
When to use: User wants to create, assign, or remove roles
Tool sequence:
DISCORDBOT_CREATE_GUILD_ROLE - Create a new role [Optional]
DISCORDBOT_ADD_GUILD_MEMBER_ROLE - Assign role to member [Optional]
DISCORDBOT_DELETE_GUILD_ROLE - Delete a role [Optional]
DISCORDBOT_GET_GUILD_MEMBER - Get member details [Optional]
DISCORDBOT_UPDATE_GUILD_MEMBER - Update member (roles, nick, etc.) [Optional]
Key parameters:
guild_id: Guild snowflake ID
user_id: User snowflake ID
role_id: Role snowflake ID
name: Role name
permissions: Bitwise permission value
color: RGB color integer
Pitfalls:
- Role assignment requires MANAGE_ROLES permission
- Target role must be lower in hierarchy than bot's highest role
- DELETE permanently removes the role from all members
4. Manage Webhooks
When to use: User wants to create or use webhooks for external integrations
Tool sequence:
DISCORDBOT_GET_GUILD_WEBHOOKS / DISCORDBOT_LIST_CHANNEL_WEBHOOKS - List webhooks [Optional]
DISCORDBOT_CREATE_WEBHOOK - Create a new webhook [Optional]
DISCORDBOT_EXECUTE_WEBHOOK - Send message via webhook [Optional]
DISCORDBOT_UPDATE_WEBHOOK - Update webhook settings [Optional]
Key parameters:
webhook_id: Webhook ID
webhook_token: Webhook secret token
channel_id: Channel for webhook creation
name: Webhook name
content/embeds: Message content for execution
Pitfalls:
- Webhook tokens are secrets; handle securely
- Webhooks can post with custom username and avatar per message
- MANAGE_WEBHOOKS permission required for creation
5. Manage Reactions
When to use: User wants to view or manage message reactions
Tool sequence:
DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI - List users who reacted [Optional]
DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS - Remove all reactions [Optional]
DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS_BY_EMOJI - Remove specific emoji reactions [Optional]
DISCORDBOT_DELETE_USER_MESSAGE_REACTION - Remove specific user's reaction [Optional]
Key parameters:
channel_id: Channel ID
message_id: Message snowflake ID
emoji_name: URL-encoded emoji or name:id for custom emojis
user_id: User ID for specific reaction removal
Pitfalls:
- Unicode emojis must be URL-encoded (e.g., '%F0%9F%91%8D' for thumbs up)
- Custom emojis use
name:id format
- DELETE_ALL requires MANAGE_MESSAGES permission
Common Patterns
Snowflake IDs
Discord uses snowflake IDs (64-bit integers as strings) for all entities:
- Guilds, channels, users, roles, messages, webhooks
Permission Bitfields
Permissions are combined using bitwise OR:
- SEND_MESSAGES = 0x800
- MANAGE_ROLES = 0x10000000
- MANAGE_MESSAGES = 0x2000
- ADMINISTRATOR = 0x8
Pagination
- Most list endpoints support
limit, before, after parameters
- Messages: max 100 per request
- Reactions: max 100 per request, use
after for pagination
Known Pitfalls
Bot vs User Tokens:
discordbot toolkit uses bot tokens; discord uses user OAuth
- Bot operations are preferred for automation
Rate Limits:
- Discord enforces per-route rate limits
- Respect
Retry-After headers on 429 responses
Quick Reference
| Task |
Tool Slug |
Key Params |
| List guilds |
DISCORD_LIST_MY_GUILDS |
(none) |
| List channels |
DISCORDBOT_LIST_GUILD_CHANNELS |
guild_id |
| Send message |
DISCORDBOT_CREATE_MESSAGE |
channel_id, content |
| Edit message |
DISCORDBOT_UPDATE_MESSAGE |
channel_id, message_id |
| Get messages |
DISCORDBOT_LIST_MESSAGES |
channel_id, limit |
| Create DM |
DISCORDBOT_CREATE_DM |
recipient_id |
| Create role |
DISCORDBOT_CREATE_GUILD_ROLE |
guild_id, name |
| Assign role |
DISCORDBOT_ADD_GUILD_MEMBER_ROLE |
guild_id, user_id, role_id |
| Delete role |
DISCORDBOT_DELETE_GUILD_ROLE |
guild_id, role_id |
| Get member |
DISCORDBOT_GET_GUILD_MEMBER |
guild_id, user_id |
| Update member |
DISCORDBOT_UPDATE_GUILD_MEMBER |
guild_id, user_id |
| Get guild |
DISCORDBOT_GET_GUILD |
guild_id |
| Create webhook |
DISCORDBOT_CREATE_WEBHOOK |
channel_id, name |
| Execute webhook |
DISCORDBOT_EXECUTE_WEBHOOK |
webhook_id, webhook_token |
| List webhooks |
DISCORDBOT_GET_GUILD_WEBHOOKS |
guild_id |
| Get reactions |
DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI |
channel_id, message_id, emoji_name |
| Clear reactions |
DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS |
channel_id, message_id |
| Test auth |
DISCORDBOT_TEST_AUTH |
(none) |
| Get channel |
DISCORDBOT_GET_CHANNEL |
channel_id |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: discord-automation3description: ALWAYS use this when the request matches Discord Automation: Automate Discord tasks via Rube MCP (Composio): messages, channels, roles, webhooks, reactions.4---56# Discord Automation via Rube MCP78## Selective Reading Rule910Start with:1112- `references/senior-master-standard.md`13- `references/usage-routing.md`14- `references/quality-checklist.md`1516Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.1718Automate Discord operations through Composio's Discord/Discordbot toolkits via Rube MCP.1920## Prerequisites2122- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)23- Active Discord connection via `RUBE_MANAGE_CONNECTIONS` with toolkits `discord` and `discordbot`24- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2526## Setup2728**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.29301. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds312. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `discordbot` (bot operations) or `discord` (user operations)323. If connection is not ACTIVE, follow the returned auth link to complete Discord auth334. Confirm connection status shows ACTIVE before running any workflows3435## Core Workflows3637### 1. Send Messages3839**When to use**: User wants to send messages to channels or DMs4041**Tool sequence**:421. `DISCORD_LIST_MY_GUILDS` - List guilds the bot belongs to [Prerequisite]432. `DISCORDBOT_LIST_GUILD_CHANNELS` - List channels in a guild [Prerequisite]443. `DISCORDBOT_CREATE_MESSAGE` - Send a message [Required]454. `DISCORDBOT_UPDATE_MESSAGE` - Edit a sent message [Optional]4647**Key parameters**:48- `channel_id`: Channel snowflake ID49- `content`: Message text (max 2000 characters)50- `embeds`: Array of embed objects for rich content51- `guild_id`: Guild ID for channel listing5253**Pitfalls**:54- Bot must have SEND_MESSAGES permission in the channel55- High-frequency sends can hit per-route rate limits; respect Retry-After headers56- Only messages sent by the same bot can be edited5758### 2. Send Direct Messages5960**When to use**: User wants to DM a Discord user6162**Tool sequence**:631. `DISCORDBOT_CREATE_DM` - Create or get DM channel [Required]642. `DISCORDBOT_CREATE_MESSAGE` - Send message to DM channel [Required]6566**Key parameters**:67- `recipient_id`: User snowflake ID for DM68- `channel_id`: DM channel ID from CREATE_DM6970**Pitfalls**:71- Cannot DM users who have DMs disabled or have blocked the bot72- CREATE_DM returns existing channel if one already exists7374### 3. Manage Roles7576**When to use**: User wants to create, assign, or remove roles7778**Tool sequence**:791. `DISCORDBOT_CREATE_GUILD_ROLE` - Create a new role [Optional]802. `DISCORDBOT_ADD_GUILD_MEMBER_ROLE` - Assign role to member [Optional]813. `DISCORDBOT_DELETE_GUILD_ROLE` - Delete a role [Optional]824. `DISCORDBOT_GET_GUILD_MEMBER` - Get member details [Optional]835. `DISCORDBOT_UPDATE_GUILD_MEMBER` - Update member (roles, nick, etc.) [Optional]8485**Key parameters**:86- `guild_id`: Guild snowflake ID87- `user_id`: User snowflake ID88- `role_id`: Role snowflake ID89- `name`: Role name90- `permissions`: Bitwise permission value91- `color`: RGB color integer9293**Pitfalls**:94- Role assignment requires MANAGE_ROLES permission95- Target role must be lower in hierarchy than bot's highest role96- DELETE permanently removes the role from all members9798### 4. Manage Webhooks99100**When to use**: User wants to create or use webhooks for external integrations101102**Tool sequence**:1031. `DISCORDBOT_GET_GUILD_WEBHOOKS` / `DISCORDBOT_LIST_CHANNEL_WEBHOOKS` - List webhooks [Optional]1042. `DISCORDBOT_CREATE_WEBHOOK` - Create a new webhook [Optional]1053. `DISCORDBOT_EXECUTE_WEBHOOK` - Send message via webhook [Optional]1064. `DISCORDBOT_UPDATE_WEBHOOK` - Update webhook settings [Optional]107108**Key parameters**:109- `webhook_id`: Webhook ID110- `webhook_token`: Webhook secret token111- `channel_id`: Channel for webhook creation112- `name`: Webhook name113- `content`/`embeds`: Message content for execution114115**Pitfalls**:116- Webhook tokens are secrets; handle securely117- Webhooks can post with custom username and avatar per message118- MANAGE_WEBHOOKS permission required for creation119120### 5. Manage Reactions121122**When to use**: User wants to view or manage message reactions123124**Tool sequence**:1251. `DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI` - List users who reacted [Optional]1262. `DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS` - Remove all reactions [Optional]1273. `DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS_BY_EMOJI` - Remove specific emoji reactions [Optional]1284. `DISCORDBOT_DELETE_USER_MESSAGE_REACTION` - Remove specific user's reaction [Optional]129130**Key parameters**:131- `channel_id`: Channel ID132- `message_id`: Message snowflake ID133- `emoji_name`: URL-encoded emoji or `name:id` for custom emojis134- `user_id`: User ID for specific reaction removal135136**Pitfalls**:137- Unicode emojis must be URL-encoded (e.g., '%F0%9F%91%8D' for thumbs up)138- Custom emojis use `name:id` format139- DELETE_ALL requires MANAGE_MESSAGES permission140141## Common Patterns142143### Snowflake IDs144145Discord uses snowflake IDs (64-bit integers as strings) for all entities:146- Guilds, channels, users, roles, messages, webhooks147148### Permission Bitfields149150Permissions are combined using bitwise OR:151- SEND_MESSAGES = 0x800152- MANAGE_ROLES = 0x10000000153- MANAGE_MESSAGES = 0x2000154- ADMINISTRATOR = 0x8155156### Pagination157158- Most list endpoints support `limit`, `before`, `after` parameters159- Messages: max 100 per request160- Reactions: max 100 per request, use `after` for pagination161162## Known Pitfalls163164**Bot vs User Tokens**:165- `discordbot` toolkit uses bot tokens; `discord` uses user OAuth166- Bot operations are preferred for automation167168**Rate Limits**:169- Discord enforces per-route rate limits170- Respect `Retry-After` headers on 429 responses171172## Quick Reference173174| Task | Tool Slug | Key Params |175|------|-----------|------------|176| List guilds | DISCORD_LIST_MY_GUILDS | (none) |177| List channels | DISCORDBOT_LIST_GUILD_CHANNELS | guild_id |178| Send message | DISCORDBOT_CREATE_MESSAGE | channel_id, content |179| Edit message | DISCORDBOT_UPDATE_MESSAGE | channel_id, message_id |180| Get messages | DISCORDBOT_LIST_MESSAGES | channel_id, limit |181| Create DM | DISCORDBOT_CREATE_DM | recipient_id |182| Create role | DISCORDBOT_CREATE_GUILD_ROLE | guild_id, name |183| Assign role | DISCORDBOT_ADD_GUILD_MEMBER_ROLE | guild_id, user_id, role_id |184| Delete role | DISCORDBOT_DELETE_GUILD_ROLE | guild_id, role_id |185| Get member | DISCORDBOT_GET_GUILD_MEMBER | guild_id, user_id |186| Update member | DISCORDBOT_UPDATE_GUILD_MEMBER | guild_id, user_id |187| Get guild | DISCORDBOT_GET_GUILD | guild_id |188| Create webhook | DISCORDBOT_CREATE_WEBHOOK | channel_id, name |189| Execute webhook | DISCORDBOT_EXECUTE_WEBHOOK | webhook_id, webhook_token |190| List webhooks | DISCORDBOT_GET_GUILD_WEBHOOKS | guild_id |191| Get reactions | DISCORDBOT_LIST_MESSAGE_REACTIONS_BY_EMOJI | channel_id, message_id, emoji_name |192| Clear reactions | DISCORDBOT_DELETE_ALL_MESSAGE_REACTIONS | channel_id, message_id |193| Test auth | DISCORDBOT_TEST_AUTH | (none) |194| Get channel | DISCORDBOT_GET_CHANNEL | channel_id |195196## When to Use197This skill is applicable to execute the workflow or actions described in the overview.198199## Limitations200- Use this skill only when the task clearly matches the scope described above.201- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.202- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.