我希望对存储在json文件中的项目列表进行索引,并调用每个API并带回数据。下面的代码显示了通过构建API链接进行索引/映射的工作方式,但是如何将整个API调用和消息放在索引中,以便API调用和返回每个列表项: // {"342671641006047252":["MSFT",bulding the link .map((ticker, index) =&
但是我得到了这个错误:RangeError [MESSAGE_CONTENT_TYPE]: Message content must be a non-empty string.和我遵循了axios和discord.jsconst Discord = require('discord.js')var webshot = require('node-webshot
我想使用google-spreadsheet API来获取数据并将数据写入我的Discord机器人中的工作表(使用discord.js)。因为某些原因,我不能让它工作。:4) UnhandledPromiseRejectionWarning: Error: Google API error - [404] Requested entity was not found.at createError (/app/node_modules/axios/lib/c
我试图使并开始学习用API的代码出价,但我有这个真正恼人的错误…我的代码是 const Discord = require('discord.js')C:\Users\jonat\Desktop\Api Dev\Discord and Rest Api\node_modulesDev\Discord and Re
我使用以下代码生成操作行://Remember to run " node deploy-commands.js " to register your commands!require('@discordjs/builders');
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js在客户端的(C:\Users\levan\Desktop\Discordbot\
=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).=strict` (see https://nodejs.org/api/cli.html#cli_unhandled