Discord 节点常见问题(Discord node common issues)#
以下是一些常见的 Discord 节点 错误和问题,以及解决或排查它们的步骤。
🌐 Here are some common errors and issues with the Discord node and steps to resolve or troubleshoot them.
向嵌入内容添加额外字段(Add extra fields to embeds)#
Discord 消息可以选择性地包含嵌入内容,这是一个包含标题、描述、图片、链接等的富预览组件。
🌐 Discord messages can optionally include embeds, a rich preview component that can include a title, description, image, link, and more.
在 消息 资源上使用 发送 操作时,Discord 节点支持嵌入。选择 添加嵌入 可以设置额外字段,包括描述、作者、标题、URL 和 URL 图片。
🌐 The Discord node supports embeds when using the Send operation on the Message resource. Select Add Embeds to set extra fields including Description, Author, Title, URL, and URL Image.
要添加默认未包含的字段,请将 输入方式 设置为 原始 JSON。然后,在 值 参数中添加一个 JSON 对象,定义你想要包含的 字段名称 和对应的值。
🌐 To add fields that aren't included by default, set Input Method to Raw JSON. From here, add a JSON object to the Value parameter defining the field names and values you want to include.
例如,要包含 footer 和 fields,而这两者都无法通过 输入字段 输入方法获得,你可以使用如下 JSON 对象:
🌐 For example, to include footer and fields, neither of which are available using the Enter Fields Input Method, you could use a JSON object like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
你可以在 使用 Webhook 和嵌入 | Discord 中了解有关嵌入的更多信息。
🌐 You can learn more about embeds in Using Webhooks and Embeds | Discord.
如果在使用 Discord 节点处理嵌入内容时遇到问题,你可以使用现有的 Discord 凭据通过 HTTP 请求 将 POST 发送到以下 URL:
🌐 If you experience issues when working with embeds with the Discord node, you can use the HTTP Request with your existing Discord credentials to POST to the following URL:
1 | |
在正文中,像这样将你的嵌入信息包含在消息内容中:
🌐 In the body, include your embed information in the message content like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
提及用户和通道(Mention users and channels)#
要在 Discord 消息中提及用户和通道,你需要按照 Discord 的消息格式指南 来格式化你的消息。
🌐 To mention users and channels in Discord messages, you need to format your message according to Discord's message formatting guidelines.
要提及某个用户,你需要知道该 Discord 用户的用户 ID。请记住,用户 ID 与用户显示名不同。同样,你需要通道 ID 才能链接到特定通道。
🌐 To mention a user, you need to know the Discord user's user ID. Keep in mind that the user ID is different from the user's display name. Similarly, you need a channel ID to link to a specific channel.
你可以在Discord 查找用户/服务器/消息 ID 的文档中学习如何启用开发者模式并复制用户或频道 ID。
🌐 You can learn how to enable developer mode and copy the user or channel IDs in Discord's documentation on finding User/Server/Message IDs.
获得用户或通道 ID 后,你可以使用以下语法格式化你的消息:
🌐 Once you have the user or channel ID, you can format your message with the following syntax:
- 用户:
<@USER_ID> - 通道:
<#CHANNEL_ID> - 角色:
<@&ROLE_ID>