用途:在 trpc-agent-go 中借由通用 message 工具完成 Discord 运维操作,不向智能体暴露 Discord 专属工具,所有请求都需带上 channel: "discord"。
主要能力:send(可附 media、silent 抑制通知、components 富组件、legacy embeds)、react、read、edit、delete、poll、pin、thread-create、search、set-presence 等。富 UI 推荐用 Discord components v2(Carbon 组件实例),且不可与 embeds 同时使用,有 v2 时 embeds 会被忽略。
用法要点:发送类动作使用 to: "channel:<id>" 或 "user:<id>";针对具体消息使用 channelId + messageId;多账号可传 accountId。需遵守门控 channels.discord.actions.*,其中 roles、moderation、presence、channels 等默认关闭。尽量使用显式 guildId、channelId、messageId、userId。@ 用户用 <@USER_ID>,出站消息避免 Markdown 表格,文风应简短、口语化。
限制:该资料未提供安装步骤、部署方式、依赖版本、权限申请细节与定价信息。