【发布时间】:2019-07-19 15:09:25
【问题描述】:
这是我第一次使用 Discord 嵌入,更不用说制作 webhook。试图找出我做错了什么有点麻烦。希望有人可以提供帮助!
当我尝试使用此代码发送带有消息的嵌入时:
{
"username": "Official Discord Servers",
"avatar_url": "https://imgur.com/a/Cl3zspb",
"embeds": [{
"description": "Here is a list of official Discord servers maintained by our State. Note that most of these servers may restrict full access to those who are members of their respective departments:",
"color": 16007990,
"fields": [
{
"name": "State of Atoll",
"value": "[Discord Server](https://discord.gg/5KKgb2z)"
},
{
"name": "Atoll Law Enforcement Training Academy",
"value": "[Discord Server](https://discord.gg/GJnbavz)"
},
{
"name": "Atoll Department of Homeland Security",
"value": "[Discord Server](https://discord.gg/acnPFa7)"
},
{
"name": "Palm County Sheriff's Office",
"value": "[Discord Server](https://discord.gg/uYFANDs)"
},
{
"name": "Atoll State Police",
"value": "[Discord Server](https://discord.gg/WNHKtra)"
},
{
"name": "Atoll Department of Corrections",
"value": "[Discord Server](https://discord.gg/VbFew9s)"
},
{
"name": "Atoll National Guard",
"value": "[Discord Server](https://discord.gg/6zE9HyW)"
}]
}
我收到此错误:
{ “代码”:50006, "message": "不能发送空消息" }
【问题讨论】:
-
即使我指定内容字段也会出现同样的问题。
-
你能提供你的代码示例吗?
-
@IvMisticos 尝试通过 pastebin 提供您的代码示例
-
我已经提供了解决方案,因为不再是我的问题了。
标签: discord discord.js