From 2f5906ba0a54b09b3d25950709daf3c3fecf2a25 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 Mar 2024 18:20:36 -0400 Subject: [PATCH] Fix embeds --- Xiao.js | 4 ++-- commands/games-sp/anime-score.js | 2 +- commands/util/report-respond.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Xiao.js b/Xiao.js index 80cc21c9..99e696ba 100644 --- a/Xiao.js +++ b/Xiao.js @@ -291,7 +291,7 @@ client.on('guildCreate', async guild => { .setTimestamp() .addField('❯ Members', formatNumber(guild.memberCount)) .addField('❯ Owner', owner.user.tag); - await joinLeaveChannel.send({ embed }); + await joinLeaveChannel.send({ embeds: [embed] }); } }); @@ -307,7 +307,7 @@ client.on('guildDelete', async guild => { .setTimestamp() .addField('❯ Members', formatNumber(guild.memberCount)) .addField('❯ Owner', owner ? owner.tag : guild.ownerID); - await joinLeaveChannel.send({ embed }); + await joinLeaveChannel.send({ embeds: [embed] }); } }); diff --git a/commands/games-sp/anime-score.js b/commands/games-sp/anime-score.js index b028919a..9e78a53a 100644 --- a/commands/games-sp/anime-score.js +++ b/commands/games-sp/anime-score.js @@ -65,7 +65,7 @@ module.exports = class AnimeScoreCommand extends Command { .setTitle(anime.title.english || anime.title.romaji) .setDescription(`_${anime.startDate.year}, ${formats[anime.format]}_`) .setFooter(anime.id.toString()); - await msg.reply('**You have 15 seconds, what score do you think this anime has?**', { embed }); + await msg.reply('**You have 15 seconds, what score do you think this anime has?**', { embeds: [embed] }); const filter = res => { if (res.author.id !== msg.author.id) return false; return Boolean(Number.parseInt(res.content, 10)); diff --git a/commands/util/report-respond.js b/commands/util/report-respond.js index 9829a888..1b306b10 100644 --- a/commands/util/report-respond.js +++ b/commands/util/report-respond.js @@ -47,7 +47,7 @@ module.exports = class ReportRespondCommand extends Command { .setTimestamp() .setColor(typesColors[type]); try { - await user.send('Your report has been evaluated with the following message:', { embed }); + await user.send('Your report has been evaluated with the following message:', { embeds: [embed] }); return msg.say(`${displaytypes[type]} sent to ${user.tag}.`); } catch { return msg.say(`Could not send ${displaytypes[type]} to ${user.tag}. Probably blocked me.`);