最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

为什么终端在运行命令时返回“无法发送空消息?”

IT培训 admin 13浏览 0评论

为什么终端在运行命令时返回“无法发送空消息?”

我正在尝试执行神奇宝贝命令,但由于某些原因,它返回为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("                
                
            
发布评论

评论列表 (0)

  1. 暂无评论