我试图为我的不和谐机器人发出一个帮助命令,当我输入.help时,它会出现一个错误。
/app/node_modules/discord.js/src/util/Util.js:416
if (typeof data !== 'string') throw new error(errorMessage);
^
RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values must be non-empty strings.
at
我三天前才开始学习discord.js,我遇到了这个错误。我试着让它,所以如果用户说!派系它会要求他们说他们的派系名称,然后,一旦他们发送了他们的派系名称,它询问他们更多的信息,他们的派系。这是我的密码:
factionEmbed = {
title : "Request to create faction.",
color : embedColor,
description : "Please reply with your faction name.",
author : {
name : message.author.username,
icon_url
我的机器人出了点问题。我得到了错误 RangeError [EMBED_FIELD_NAME]: MessageEmbed field names must be non-empty strings.
at Function.verifyString (C:\Users\beucodi\Documents\r-Wof-bot\node_modules\discord.js\src\util\Util.js:413:41)
at Function.normalizeField (C:\Users\beucodi\Documents\r-Wof-bot\node_modules\
尝试使用discord.js将不一致消息编辑为RichEmbedded消息时,出现错误
(node:10860) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.timestamp: Could not parse 1581492006141. Should be ISO8601.
at item.request.gen.end (/rbd/pnpm-volume/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/node_modules/.registry.n
我升级到了Discord.js v12,但是它破坏了我现有的v11代码。下面是一些导致错误的例子:
// TypeError: client.users.get is not a function
const user = client.users.get('123456789012345678')
// TypeError: message.guild.roles.find is not a function
const role = message.guild.roles.find(r => r.name === 'Admin')
// TypeE
因此,基本上,我试图从一个通道获取嵌入,然后将其发送到另一个通道,但它给出了一个错误,说明有一些关于空消息的信息。 完全错误: Received 1 messages
/home/bot/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Cannot send an empty message
at RequestHandler.execute
我正在使用discord.js,并且我想创建一个嵌入消息,但是我得到了以下错误: TypeError: (intermediate value).setColor(...).setTitle(...).setUrl is not a function
at Client.<anonymous> (C:\Users\oussa\OneDrive\Bureau\Discord Bot\index.js:48:10)
at Client.emit (events.js:326:22)
at MessageCreateAction.handle (C:\Users
我有一个文本字段,我使用flash ide定位在另一个电影剪辑中。在库中,文本字段清晰可见,预设值为88。当我运行swf时,文本字段不在那里。
当我从flash中导出一个块元件时,我的方法是在displayobject容器中查找对象(TextField)。当我在loopStage(这个)内部中断时,我有一个对我在编辑器中定位的文本字段的引用,并且可以看到我在那里设置的预设值"88“。
有没有人知道为什么我看不到文本字段,但在调试时可以看到引用?
有关详细信息-文本字段位于其自己的图层中,并且对于影片剪辑中的所有帧都在舞台上。
public class Piece extends
在创建时,如何使用iText设置字段的字体,如下所示:
PdfReader pdf = new PdfReader("C:\\foo.pdf");
FileStream outs = new FileStream("C:\\bar.pdf", FileMode.Create,
FileAccess.Write);
PdfStamper stamps = new PdfStamper(pdf, outs);
PdfFormField field = PdfFormField.CreateTextField(stamps.Wri
我已经有一段时间试图表达我的不和谐情绪了。但是它不会发送,它总是错误的。错误如下所示
DiscordAPIError: Cannot send an empty message
at RequestHandler.execute (C:\Users\me\Documents\npm-test\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async RequestHandler.