Community程式設計與開發github.com

Discord

Discord 訊息工具操作:傳送、閱讀、編輯、刪除、表情反應、投票、釘選、討論串、搜尋、狀態設定以及媒體/元件。

Discord 是什麼?

這個技能讓 AI 代理人能夠透過統一的 `message` 工具(指定 `channel: "discord"`)來操作 Discord。它支援一系列豐富的動作,包括傳送文字與媒體訊息、閱讀頻道歷史、編輯或刪除既有的訊息、對訊息加入表情反應、建立與管理投票、釘選重要訊息、建立討論串以及搜尋頻道內的內容。此外,還可管理機器人的線上狀態(如 playing、online)。為了確保操作的正確性與多帳戶支援,使用者應優先提供明確的 `guildId`、`channelId`、`messageId` 及 `userId`,並在需要時指定 `accountId`。傳送目標可使用 `to: "channel:<id>"` 或 `to: "user:<id>"` 格式,提及使用者則需使用 `<@USER_ID>`。此技能特別強調避免在 Discord 訊息中使用 Markdown 表格,並鼓勵使用 Components v2 來建構豐富的使用者介面,且不應將 v2 元件與舊式的 embeds 混用。 這個技能主要設計給支援 `message` 工具的代理人平台(例如 Claude Code、Cursor、Codex 等)使用,透過標準化的 JSON 指令結構來執行 Discord API 操作。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/discord

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Discord 是做什麼的?

使用 channel: "discord" 搭配 message 工具。無需單獨的 Discord 工具。

規則

  • 尊重 channels.discord.actions.* 的權限閘門。
  • 優先使用明確的 guildId、channelId、messageId、userId。
  • 多帳戶:必要時傳遞 accountId。
  • 傳送目標:to: "channel:<id>" 或 to: "user:<id>"。
  • 提及使用者請使用 <@USER_ID>。
  • 在對外 Discord 訊息中避免使用 Markdown 表格。
  • 偏好使用 Components v2 來建構豐富的 UI;請勿將 v2 的 components 與舊式的 embeds 混用。

常見動作

傳送:

{ "action": "send", "channel": "discord", "to": "channel:123", "message": "你好", "silent": true }

傳送媒體:

{
  "action": "send",
  "channel": "discord",
  "to": "channel:123",
  "message": "請見附件",
  "media": "file:///tmp/example.png"
}

Components v2:

{
  "action": "send",
  "channel": "discord",
  "to": "channel:123",
  "message": "狀態",
  "components": "[Carbon v2 元件]"
}

表情反應:

{ "action": "react", "channel": "discord", "channelId": "123", "messageId": "456", "emoji": "👍" }

閱讀:

{ "action": "read", "channel": "discord", "to": "channel:123", "limit": 20 }

編輯/刪除:

{
  "action": "edit",
  "channel": "discord",
  "channelId": "123",
  "messageId": "456",
  "message": "修正錯字"
}
{ "action": "delete", "channel": "discord", "channelId": "123", "messageId": "456" }

投票:

{
  "action": "poll",
  "channel": "discord",
  "to": "channel:123",
  "pollQuestion": "午餐吃什麼?",
  "pollOption": ["披薩", "壽司"],
  "pollDurationHours": 24
}

釘選:

{ "action": "pin", "channel": "discord", "channelId": "123", "messageId": "456" }

討論串:

{
  "action": "thread-create",
  "channel": "discord",
  "channelId": "123",
  "messageId": "456",
  "threadName": "錯誤分類"
}

搜尋:

{
  "action": "search",
  "channel": "discord",
  "guildId": "999",
  "query": "版本發布說明",
  "channelIds": ["123"],
  "limit": 10
}

狀態設定(通常需要權限閘門):

{
  "action": "set-presence",
  "channel": "discord",
  "activityType": "playing",
  "activityName": "OpenClaw",
  "status": "online"
}

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能