discord

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Discord (Via
message
)

Discord(通过
message
工具)

Use the
message
tool. No provider-specific
discord
tool exposed to the agent.
使用
message
工具。不会向Agent暴露特定于Discord的工具。

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
    .
  • 必须始终设置:
    channel: "discord"
  • 权限限制:需遵循
    channels.discord.actions.*
    配置(部分默认关闭:
    roles
    moderation
    presence
    channels
    )。
  • 优先使用明确ID:
    guildId
    channelId
    messageId
    userId
  • 多账号支持:可选参数
    accountId

Targets

目标指定方式

  • Send-like actions:
    to: "channel:<id>"
    or
    to: "user:<id>"
    .
  • Message-specific actions:
    channelId: "<id>"
    (or
    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表格。
  • 优先分多条简短回复,而非一大段文字。