为什么终端在运行命令时返回“无法发送空消息?”
我正在尝试执行神奇宝贝命令,但由于某些原因,它返回为UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
。这是代码,我希望这个平台可以帮助我解决问题。
const rand = Math.floor(Math.random() * 802);
const poke = rand > 0 ? rand : Math.floor(Math.random() * 802);
const pokem = pokemon[poke];
const embed = new Discord.MessageEmbed()
.setTitle("
为什么终端在运行命令时返回“无法发送空消息?”
我正在尝试执行神奇宝贝命令,但由于某些原因,它返回为UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
。这是代码,我希望这个平台可以帮助我解决问题。
const rand = Math.floor(Math.random() * 802);
const poke = rand > 0 ? rand : Math.floor(Math.random() * 802);
const pokem = pokemon[poke];
const embed = new Discord.MessageEmbed()
.setTitle("