邮件与消息11k · #11716
discord
它能做什么
这项技能让 AI 在 Discord 中发布和管理消息。适合经营 Discord 服务器或社群、并希望获得发送更新帮助的人。
适用场景
- ✓当你想向 Discord 频道发布消息或更新时。
- ✓当你想向 Discord 频道发送文件或图片时。
- ✓当你想编辑已有的 Discord 消息或对其做出回应的时候。
技能链接
https://github.com/spinabot/brigade/blob/main/skills/discord/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/spinabot/brigade/blob/main/skills/discord/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add spinabot/brigade --skill discord
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/spinabot/brigade/main/skills/discord/SKILL.md -o SKILL.md
可以这样问 AI
“请在我 Discord 服务器的 general 频道发布一条欢迎消息,并且发送时不要有提示音。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会使用通用消息工具,以 Discord 作为渠道。它会指定目标频道或用户,可以静默发送、附加媒体或使用富文本版式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Discord (Via message)
Use the message tool. No provider-specific discord tool exposed to the agent.
Musts
- Always:
channel: "discord". - Respect gating:
channels.discord.actions.*(some default off:roles,moderation,presence,channels). - Prefer explicit ids:
guildId,channelId,messageId,userId. - Multi-account: optional
accountId.
Guidelines
- Avoid Markdown tables in outbound Discord messages.
- Mention users as
<@USER_ID>. - Prefer Discord components v2 (
components) for rich UI; use legacyembedsonly when you must.
Targets
- Send-like actions:
to: "channel:<id>"orto: "user:<id>". - Message-specific actions:
channelId: "<id>"(orto) +messageId: "<id>".
Common Actions (Examples)
Send message:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "hello",
"silent": true
}
Send with media:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "see attachment",
"media": "file:///tmp/example.png"
}
- Optional
silent: trueto suppress Discord notifications.
Send with components v2 (recommended for rich UI):
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "Status update",
"components": "[Carbon v2 components]"
}
componentsexpects Carbon component instances (Container, TextDisplay, etc.) from JS/TS integrations.- Do not combine
componentswithembeds(Discord rejects v2 + embeds).
Legacy embeds (not recommended):
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "Status update",
"embeds": [{ "title": "Legacy", "description": "Embeds are legacy." }]
}
embedsare ignored when components v2 are present.
React:
{
"action": "react",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"emoji": "✅"
}
Read:
{
"action": "read",
"channel": "discord",
"to": "channel:123",
"limit": 20
}
Edit / delete:
{
"action": "edit",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"message": "fixed typo"
}
{
"action": "delete",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}
Poll:
{
"action": "poll",
"channel": "discord",
"to": "channel:123",
"pollQuestion": "Lunch?",
"pollOption": ["Pizza", "Sushi", "Salad"],
"pollMulti": false,
"pollDurationHours": 24
}
Pins:
{
"action": "pin",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}
Threads:
{
"action": "thread-create",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"threadName": "bug triage"
}
Search:
{
"action": "search",
"channel": "discord",
"guildId": "999",
"query": "release notes",
"channelIds": ["123", "456"],
"limit": 10
}
Presence (often gated):
{
"action": "set-presence",
"channel": "discord",
"activityType": "playing",
"activityName": "with fire",
"status": "online"
}
Writing Style (Discord)
- Short, conversational, low ceremony.
- No markdown tables.
- Mention users as
<@USER_ID>.
常见问题
它可以发送消息而不通知所有人吗?
可以。静默选项会为该条消息抑制 Discord 通知。
有些操作默认是关闭的吗?
是的。某些管理操作,例如角色或管理审核,默认关闭,必须在设置中开启。
它如何提及某位用户?
它会使用 Discord 用户 ID,并采用 Discord 提及的格式。
详情
热度
- GitHub 星标
- 11k
- 排名
- #11716
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …