From 7db92969af625f5c211dd5897fcb6348ebeb8278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 4 Aug 2021 11:17:30 +0300 Subject: [PATCH] Fix embed sending part 3 --- src/client/commands/bug.js | 2 +- src/client/commands/help.js | 4 ++-- src/client/commands/invite.js | 2 +- src/client/commands/list.js | 2 +- src/client/commands/maintenance.js | 4 ++-- src/client/commands/nowplaying.js | 2 +- src/client/commands/statistics.js | 2 +- src/client/commands/status.js | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/client/commands/bug.js b/src/client/commands/bug.js index 591d96b..021f518 100644 --- a/src/client/commands/bug.js +++ b/src/client/commands/bug.js @@ -17,7 +17,7 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(message.bugDescription) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - msg.channel.send({ embeds: embed }); + msg.channel.send({ embeds: [embed] }); }, }; \ No newline at end of file diff --git a/src/client/commands/help.js b/src/client/commands/help.js index 2149e75..593b80b 100644 --- a/src/client/commands/help.js +++ b/src/client/commands/help.js @@ -24,7 +24,7 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(message.helpCommandDescription) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - msg.channel.send({ embeds: embed }); + msg.channel.send({ embeds: [embed] }); } else { const categories = []; for (let i = 0; i < client.commands.size; i++) { @@ -45,7 +45,7 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(message.helpDescription) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - msg.channel.send({ embeds: embed }); + msg.channel.send({ embeds: [embed] }); } } }; diff --git a/src/client/commands/invite.js b/src/client/commands/invite.js index 2724922..220a4a4 100644 --- a/src/client/commands/invite.js +++ b/src/client/commands/invite.js @@ -13,6 +13,6 @@ module.exports = { .setColor(client.config.embedColor) .setURL("https://discordapp.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=3427328&scope=bot") .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - return msg.channel.send({ embeds: embed }); + return msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file diff --git a/src/client/commands/list.js b/src/client/commands/list.js index e00c02c..932c2b8 100644 --- a/src/client/commands/list.js +++ b/src/client/commands/list.js @@ -23,6 +23,6 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(stations) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - return msg.channel.send({ embeds: embed }); + return msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file diff --git a/src/client/commands/maintenance.js b/src/client/commands/maintenance.js index 0fd8262..ef85a78 100644 --- a/src/client/commands/maintenance.js +++ b/src/client/commands/maintenance.js @@ -35,7 +35,7 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(client.messages.sendedMaintenanceMessage) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - currentRadio.textChannel.send({ embeds: cembed }); + currentRadio.textChannel.send({ embeds: [cembed] }); client.radio.delete(radio.value); stoppedRadios += "-" + radio.value + ": " + currentRadio.currentGuild.guild.name + "\n"; } @@ -48,6 +48,6 @@ module.exports = { .setColor(client.config.embedColor) .setDescription("Stopped all radios" + "\n" + stoppedRadios) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - return msg.channel.send({ embeds: embed }); + return msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file diff --git a/src/client/commands/nowplaying.js b/src/client/commands/nowplaying.js index d31d9cc..019631a 100644 --- a/src/client/commands/nowplaying.js +++ b/src/client/commands/nowplaying.js @@ -25,6 +25,6 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(message.nowplayingDescription) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - return msg.channel.send({ embeds: embed }); + return msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file diff --git a/src/client/commands/statistics.js b/src/client/commands/statistics.js index 1d6f64d..c419002 100644 --- a/src/client/commands/statistics.js +++ b/src/client/commands/statistics.js @@ -34,6 +34,6 @@ module.exports = { .setColor(client.config.embedColor) .setDescription(statistics) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - return msg.channel.send({ embeds: embed }); + return msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file diff --git a/src/client/commands/status.js b/src/client/commands/status.js index 042aee2..d2d87ef 100644 --- a/src/client/commands/status.js +++ b/src/client/commands/status.js @@ -21,7 +21,7 @@ module.exports = { .addField(client.messages.statusField4, client.config.version, true) .addField(client.messages.statusField5, client.config.hostedBy, true) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); - msg.channel.send({ embeds: embed }); + msg.channel.send({ embeds: [embed] }); } }; \ No newline at end of file