Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
使用 discord 来管理消息、反应、线程、投票和审核。你可以通过 discord.actions.* 禁用功能组(默认启用,角色/审核除外)。该工具使用为 Clawdbot 配置的机器人令牌。
消息上下文行包含 discord message id 和 channel 字段,你可以直接复用。
注意: sendMessage 使用 to: channel:
json
{
action: react,
channelId: 123,
messageId: 456,
emoji: ✅
}
json
{
action: reactions,
channelId: 123,
messageId: 456,
limit: 100
}
json
{
action: sticker,
to: channel:123,
stickerIds: [9876543210],
content: 干得好!
}
json
{
action: emojiUpload,
guildId: 999,
name: party_blob,
mediaUrl: file:///tmp/party.png,
roleIds: [222]
}
json
{
action: stickerUpload,
guildId: 999,
name: clawdbot_wave,
description: Clawdbot 挥手问好,
tags: 👋,
mediaUrl: file:///tmp/wave.png
}
json
{
action: poll,
to: channel:123,
question: 午餐吃什么?,
answers: [披萨, 寿司, 沙拉],
allowMultiselect: false,
durationHours: 24,
content: 快来投票
}
json
{
action: permissions,
channelId: 123
}
使用 discord.actions.* 禁用操作组:
json
{
action: readMessages,
channelId: 123,
limit: 20
}
json
{
action: sendMessage,
to: channel:123,
content: 来自 Clawdbot 的问候
}
带媒体附件:
json
{
action: sendMessage,
to: channel:123,
content: 听听这个音频!,
mediaUrl: file:///tmp/audio.mp3
}
json
{
action: editMessage,
channelId: 123,
messageId: 456,
content: 修正了错别字
}
json
{
action: deleteMessage,
channelId: 123,
messageId: 456
}
json
{
action: threadCreate,
channelId: 123,
name: Bug 分类,
messageId: 456
}
json
{
action: threadList,
guildId: 999
}
json
{
action: threadReply,
channelId: 777,
content: 在线程中回复
}
json
{
action: pinMessage,
channelId: 123,
messageId: 456
}
json
{
action: listPins,
channelId: 123
}
json
{
action: searchMessages,
guildId: 999,
content: 发布说明,
channelIds: [123, 456],
limit: 10
}
json
{
action: memberInfo,
guildId: 999,
userId: 111
}
json
{
action: roleInfo,
guildId: 999
}
json
{
action: emojiList,
guildId: 999
}
json
{
action: roleAdd,
guildId: 999,
userId: 111,
roleId: 222
}
json
{
action: channelInfo,
channelId: 123
}
json
{
action: channelList,
guildId: 999
}
json
{
action: voiceStatus,
guildId: 999,
userId: 111
}
json
{
action: eventList,
guildId: 999
}
json
{
action: timeout,
guildId: 999,
userId: 111,
durationMinutes: 10
}
保持对话感! Discord 是聊天平台,不是文档。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 discord-1775925841 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 discord-1775925841 技能
skillhub install discord-1775925841
文件大小: 3.24 KB | 发布时间: 2026-4-12 09:44