我试图为我的不和谐机器人发出一个帮助命令,当我输入.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将不一致消息编辑为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
因此,基本上,我试图从一个通道获取嵌入,然后将其发送到另一个通道,但它给出了一个错误,说明有一些关于空消息的信息。 完全错误: 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
我三天前才开始学习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\
我在试着做一个发送嵌入的命令。但是由于某些原因,它一直在说DiscordAPIError: Invalid Form Body data.embeds[0].description: This field is required Error,尽管描述不是空格。 我将它托管在heroku中,所以错误来自于日志。 命令脚本: module.exports = {
name: "test",
desc: "A test command",
cmd: async (interaction, utils) => {
awai
我一直在为我所在的服务器制作一个自定义机器人,直到我在代码中遇到这个运行时错误之前,一切都进行得很顺利。有小费吗?
错误:
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
embeds[0].description: This field is required
at RequestHandler.execute (C:\Users\arinb\node_modules\discord.js\src\rest\RequestHa
我是node.js和javascript的新手,我想为我的服务器编写一个不和谐的机器人。我在埋伏被困住了。每当我想运行我的代码时,这里就会出现
(node:15928) DeprecationWarning: The message event is deprecated. Use messageCreate instead
(Use `node --trace-deprecation ...` to show where the warning was created)
C:\Users\Lusor\OneDrive\Desktop\dcbot\node_modules\discord.js
我目前正在开发一个不一致的机器人,它应该可以验证一个Roblox帐户。到目前为止,我的脚本已经准备好了,命令"-verify“也可以执行,但随后发生了一个错误: (node:22872) DeprecationWarning: The message event is deprecated. Use messageCreate
instead
(Use `node --trace-deprecation ...` to show where the warning was created)
C:\Users\Foxii\ExoConnect\node_modules\discord
我想制造一个不和谐的机器人。每当我运行它,它是好的,但当我键入一个词,它应该过滤掉,它停止。这是我在输入一个阻塞的单词时遇到的错误。
DiscordAPIError: Cannot send an empty message
at RequestHandler.execute (C:\Users\loser\Desktop\word filter bot\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queue