Discord は何をしますか?
channel: "discord" を指定して message ツールを使用します。独立したDiscordツールはありません。
ルール
channels.discord.actions.*ゲートを尊重してください。guildId、channelId、messageId、userIdは明示的に指定することを推奨します。- マルチアカウント:必要な場合は
accountIdを渡してください。 - 送信先:
to: "channel:<id>"またはto: "user:<id>"を使用します。 - ユーザーへのメンションは
<@USER_ID>を使用します。 - Discord送信メッセージ内ではMarkdownテーブルを避けてください。
- リッチUIにはコンポーネントv2を推奨します。v2の
componentsとレガシーembedsを混在させないでください。
一般的なアクション
送信:
{ "action": "send", "channel": "discord", "to": "channel:123", "message": "hello", "silent": true }
メディア送信:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "see attachment",
"media": "file:///tmp/example.png"
}
コンポーネントv2:
{
"action": "send",
"channel": "discord",
"to": "channel:123",
"message": "Status",
"components": "[Carbon v2 components]"
}
リアクション:
{ "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": "fixed typo"
}
{ "action": "delete", "channel": "discord", "channelId": "123", "messageId": "456" }
投票:
{
"action": "poll",
"channel": "discord",
"to": "channel:123",
"pollQuestion": "Lunch?",
"pollOption": ["Pizza", "Sushi"],
"pollDurationHours": 24
}
ピン留め:
{ "action": "pin", "channel": "discord", "channelId": "123", "messageId": "456" }
スレッド:
{
"action": "thread-create",
"channel": "discord",
"channelId": "123",
"messageId": "456",
"threadName": "bug triage"
}
検索:
{
"action": "search",
"channel": "discord",
"guildId": "999",
"query": "release notes",
"channelIds": ["123"],
"limit": 10
}
プレゼンス(通常はゲート付き):
{
"action": "set-presence",
"channel": "discord",
"activityType": "playing",
"activityName": "OpenClaw",
"status": "online"
}