discord
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDiscord (Via message
)
messageDiscord(通过message
工具)
messageUse the tool. No provider-specific tool exposed to the agent.
messagediscord使用工具。不会向Agent暴露特定于Discord的工具。
messageMusts
必须遵守的规则
- Always: .
channel: "discord" - Respect gating: (some default off:
channels.discord.actions.*,roles,moderation,presence).channels - Prefer explicit ids: ,
guildId,channelId,messageId.userId - Multi-account: optional .
accountId
- 必须始终设置:。
channel: "discord" - 权限限制:需遵循配置(部分默认关闭:
channels.discord.actions.*、roles、moderation、presence)。channels - 优先使用明确ID:、
guildId、channelId、messageId。userId - 多账号支持:可选参数。
accountId
Targets
目标指定方式
- Send-like actions: or
to: "channel:<id>".to: "user:<id>" - Message-specific actions: (or
channelId: "<id>") +to.messageId: "<id>"
- 类发送操作:或
to: "channel:<id>"。to: "user:<id>" - 消息专属操作:(或
channelId: "<id>") +to。messageId: "<id>"
Common Actions (Examples)
常见操作(示例)
Send message:
json
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "hello",
"silent": true
}Send with media:
json
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "see attachment",
"media": "file:///tmp/example.png"
}React:
json
{
"action": "react",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"emoji": "✅"
}Read:
json
{
"action": "read",
"channel": "discord",
"to": "channel:123",
"limit": 20
}Edit / delete:
json
{
"action": "edit",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"message": "fixed typo"
}json
{
"action": "delete",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}Poll:
json
{
"action": "poll",
"channel": "discord",
"to": "channel:123",
"pollQuestion": "Lunch?",
"pollOption": ["Pizza", "Sushi", "Salad"],
"pollMulti": false,
"pollDurationHours": 24
}Pins:
json
{
"action": "pin",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}Threads:
json
{
"action": "thread-create",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"threadName": "bug triage"
}Search:
json
{
"action": "search",
"channel": "discord",
"guildId": "999",
"query": "release notes",
"channelIds": ["123", "456"],
"limit": 10
}Presence (often gated):
json
{
"action": "set-presence",
"channel": "discord",
"activityType": "playing",
"activityName": "with fire",
"status": "online"
}发送消息:
json
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "hello",
"silent": true
}发送带媒体的消息:
json
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "see attachment",
"media": "file:///tmp/example.png"
}添加反应:
json
{
"action": "react",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"emoji": "✅"
}读取消息:
json
{
"action": "read",
"channel": "discord",
"to": "channel:123",
"limit": 20
}编辑/删除消息:
json
{
"action": "edit",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"message": "fixed typo"
}json
{
"action": "delete",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}发起投票:
json
{
"action": "poll",
"channel": "discord",
"to": "channel:123",
"pollQuestion": "Lunch?",
"pollOption": ["Pizza", "Sushi", "Salad"],
"pollMulti": false,
"pollDurationHours": 24
}置顶消息:
json
{
"action": "pin",
"channel": "discord",
"channelId": "123",
"messageId": "456"
}创建线程:
json
{
"action": "thread-create",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"threadName": "bug triage"
}搜索消息:
json
{
"action": "search",
"channel": "discord",
"guildId": "999",
"query": "release notes",
"channelIds": ["123", "456"],
"limit": 10
}设置在线状态(通常受权限限制):
json
{
"action": "set-presence",
"channel": "discord",
"activityType": "playing",
"activityName": "with fire",
"status": "online"
}Writing Style (Discord)
Discord内容撰写风格
- Short, conversational, low ceremony.
- No markdown tables.
- Prefer multiple small replies over one wall of text.
- 简短、口语化,无需繁琐格式。
- 不要使用Markdown表格。
- 优先分多条简短回复,而非一大段文字。