Discord Chat
2026-03-28
新闻来源:网淘吧
围观:38
电脑广告
手机广告
Discord聊天
使用Clawdbot的消息工具与Discord频道互动。
核心操作
发送消息
向Discord频道发送消息:
message action=send channel=discord target="#channel-name" message="Your message here"
或通过频道ID:
message action=send channel=discord target="1234567890" message="Your message here"
提示:
- 使用带
#前缀的频道名称或频道ID - 对于多个链接,用
<>包裹以抑制嵌入:<https://example.com> - 不要使用markdown表格!改用项目符号列表
- 支持使用
effect=balloons或effectId=invisible-ink
添加特效
回复消息
message action=send channel=discord target="#channel-name" message="Reply text" replyTo="message-id"
回复特定消息:
回复至参数用于创建对指定消息ID的线程式回复。
搜索消息
在频道中搜索消息:
message action=search channel=discord channelId="1234567890" query="search terms" limit=50
搜索选项:
查询:搜索词作者ID:按作者筛选之前/之后/附近:用于分页的消息ID限制:最大结果数(默认25)
详见SEARCH.md获取高级搜索模式。
其他操作
阅读消息:
message action=read channel=discord target="#channel-name" limit=20
对消息做出反应:
message action=react channel=discord messageId="1234567890" emoji="👍"
编辑消息:
message action=edit channel=discord messageId="1234567890" message="Updated text"
删除消息:
message action=delete channel=discord messageId="1234567890"
快速参考
常见模式:
- 向频道公告:
action=send target="#announcements" - 在主题内回复:
action=send replyTo="msg-id" - 近期动态:
action=read limit=10 - 查找提及:
action=search query="@username" - 确认:
action=react emoji="✅"
频道管理
列出频道:
message action=channel-list channel=discord guildId="server-id"
获取频道信息:
message action=channel-info channel=discord channelId="1234567890"
关于创建/编辑频道,请参阅CHANNELS.md。
最佳实践
- 尽可能使用目标名称-
target="#general"比 ID 更清晰 - 批量反应- 每条消息一个表情符号,选择最合适的
- Discord 格式- 使用项目符号而非表格
<link>用于抑制嵌入内容 - 提问前先搜索- 请求信息前先查看历史记录
- 反应优于回复- 使用反应进行简单确认
配置
您的 Discord 机器人配置应位于网关配置中。当指定消息工具会自动路由到配置好的 Discord 插件。channel=discord时。
如需设置帮助,请参阅CONFIG.md文件。
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Mermaid Diagrams
下一篇:Gitlab Cli Skills


微信扫一扫,打赏作者吧~