我在控制台中有以下错误:
TypeError:无法解构
body“未定义”或“空”的属性。
这是我的代码:
var { body } = await snekfetch.get(`https://api.roblox.com/users/get-by-username?username=${userArray[i]}`).catch((err) => console.log('caught it'));
if (body.success === false){
var errorEmbed = new Discord.RichEmbed()
.setColor(0xff4040)
.setDescription(`:warning: **${userArray[i]} doesn't exist on ROBLOX** :warning:`);
await message.channel.send(errorEmbed);