From 067e61948868d57c35d5f160616b9cb39efb52c5 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 6 Apr 2020 18:15:17 -0400 Subject: [PATCH] Changed all RichEmbed to MessageEmbed. This is order to add discord.js v12 support. --- commands/suggest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/suggest.js b/commands/suggest.js index 0949574..2f4a016 100644 --- a/commands/suggest.js +++ b/commands/suggest.js @@ -14,7 +14,7 @@ exports.run = async(bot, message, args) => { console.log(`\u001b[33m`, `[${supportbot.Bot_Name}] > `, `\u001b[31;1m`, `${message.author.tag}`, `\u001b[32;1m`, `has executed`, `\u001b[31;1m`, `${supportbot.Prefix}${supportbot.Suggest_Command}`); - const SuggestionEmbed = new Discord.RichEmbed() + const SuggestionEmbed = new Discord.MessageEmbed() .setTitle(`${supportbot.Suggestion_Title}`) .setDescription(`\`\`\`${args.join(" ")}\`\`\`\nFrom <@${message.author.id}>`) .setFooter(`${supportbot.EmbedFooter}`, message.author.avatarURL) @@ -30,7 +30,7 @@ exports.run = async(bot, message, args) => { msg.react(supportbot.suggestyes).then(() => msg.react(supportbot.suggestno)); }); - const SuggestionSuccessEmbed = new Discord.RichEmbed() + const SuggestionSuccessEmbed = new Discord.MessageEmbed() .setDescription(`👍 Suggestion has been successfully created\nYou can view your suggestion in <#${sc.id}>`) .setColor(supportbot.EmbedColour) message.channel.send(SuggestionSuccessEmbed);