mcpField
D
discord

discord

github.com/openclawProductivity393.3k3.0k installsUpdated today
Repository

About discord

The Discord skill guides use of the `message` tool for Discord actions enabled by the current account. It focuses on stable identifiers, resolving ambiguous targets, thread handling, and confirmation for destructive or moderation actions.

Key features

  1. 01Use enabled Discord message actions
  2. 02Target entities with stable IDs
  3. 03Resolve messages before changes
  4. 04Keep replies in existing threads
  5. 05Handle interactive components

Use cases

  1. 01Send messages using available account actions
  2. 02Edit, delete, pin, or react to a resolved message
  3. 03Reply within an existing thread
  4. 04Send structured interactive components

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/openclaw/openclaw --skill discord

After installing, type/discordin Claude Code to confirm it loaded.

Details

From the project README

Discord

Use the message tool with channel: "discord". The tool schema lists the actions enabled by the current account's channels.discord.actions.* gates; do not assume unavailable actions.

Workflow

  • Prefer stable guildId, channelId, messageId, and userId values from context. Pass accountId when more than one Discord account could apply.
  • Resolve the exact message before editing, deleting, pinning, moderating, or reacting when the user's reference is ambiguous.
  • Keep thread replies in their existing thread. A forum parent cannot receive components; send components to the created forum thread instead.
  • Confirm destructive or moderation actions unless the user already specified the exact target and action.

Interactive components

components must be a structured object or native component array, never a placeholder string. Do not combine components v2 with legacy embeds.

{
  "action": "send",
  "channel": "discord",
  "to": "channel:123",
  "message": "Choose an option",
  "components": {
    "blocks": [
      {
        "type": "actions",
        "buttons": [
          { "label": "Approve", "style": "success", "callbackData": "approve" },
          { "label": "Decline", "style": "danger", "callbackData": "decline" }
        ]
      }
    ]
  }
}

Discord mention syntax, component availability, and form hints are injected automatically. Follow the current hints and tool schema rather than a duplicated action catalog.

Comments

Markdown supported