Duaer

集成

在 Duaer 里使用 Discord

在 Duaer 里,Discord 节点让工作流程直接操作 Discord,共 21 个操作,覆盖 Channel、Message、Member。

把 Discord 加到 Duaer 工作流程

带示例的完整说明见 在 Duaer 里用 Discord 发消息。

  1. 在 Duaer 画布上打开节点面板,搜索 Discord,接在上一个节点后面。
  2. 在 Authentication 里选 Bot Token、OAuth2、Webhook 其中一种,再在 Credential to connect with 里选择或新建对应凭证(Discord Bot API、Discord OAuth2 API、Discord Webhook)。见 Discord 凭证。
  3. 选 Resource 和 Operation。例如选 Message 和 Send。
  4. 填写这个操作显示的字段,例如 Send To、Message、Embeds、Files。
  5. 需要时点 Add Option,添加下文列出的可选设置。
  6. 点 Execute step,查看输出。

Duaer 里 Discord 的操作

Duaer 的 Discord 节点按资源分组提供这些操作:

  • Channel:Create、Delete、Get、Get Many、Update、Send a Message
  • Message:Delete、Get、Get Many、React with Emoji、Send、Send and Wait for Response、Send a Message
  • Member:Ban、Get Many、Kick、Role Add、Role Remove、Timeout、Unban、Send a Message

Duaer 里 Discord 的可选设置

Add Option 下有 Avatar URL、Flags、Text-to-Speech (TTS)、Username、Wait。

在 Duaer 里把 Discord 当作 AI Agent 的工具

在 AI Agent 的「工具」(Tool)输入里搜索 Discord 并添加,由 Agent 决定什么时候调用。要让模型填写的字段,点字段旁的星形按钮,或写 $fromAI('name', '要填什么');固定值保持你设定的内容。

调用 Discord 节点没有的接口

加一个 HTTP Request 节点,Authentication 选 Predefined Credential Type,凭证类型选 Discord Bot API,再选同一份凭证。Duaer 会用它签名请求,你只需填方法和地址。见 自定义操作。

常见问题

报错原因和修法见 Duaer 里 Discord 的常见问题。

常见问题

Duaer 支持 Discord 的哪些操作?

Duaer 的 Discord 节点共有 21 个操作,覆盖 Channel、Message、Member。例如 Channel 有 Create、Delete、Get、Get Many、Update、Send a Message。

Duaer 的 Discord 用哪种凭证?

Duaer 的 Discord 根据 Authentication 的选择,使用 Discord Bot API、Discord OAuth2 API、Discord Webhook 之一。

同组