该技能用于通过通用 message 工具执行 Discord 运维操作,agent 不暴露 Discord 专用工具,所有操作都走 message 工具,且必须指定 channel 为 "discord"。功能受 channels.discord.actions.* 开关限制,roles、moderation、presence、channels 等默认可能关闭;建议显式提供 guildId、channelId、messageId、userId,多账号时可用可选 accountId。目标写法:发送类动作使用 to: "channel:<id>" 或 to: "user:<id>";针对具体消息的动作使用 channelId 加 messageId。常见动作包含 send(可带 media,或用 silent 抑制通知)、react、read(可用 limit)、edit、delete、poll(pollQuestion、pollOption、pollMulti、pollDurationHours)、pin、thread-create、search(guildId、query、channelIds、limit)以及 set-presence(activityType、activityName、status)。富 UI 推荐 Discord components v2,通过 components 传入 Carbon 组件实例;components 与 embeds 不可同时使用,否则 Discord 会拒绝,embeds 属旧式写法。发送消息避免使用 Markdown 表格,提及用户写成 <@USER_ID>,文案宜简短口语化。资料未提供安装命令、价格与运行环境要求。
discord
通用与其它
更新于 10-16 09:59