From 0c71fd7e591bc30eda0e5e2a5b727e8b58f54f36 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 6 Apr 2020 18:15:06 -0400 Subject: [PATCH] Changed all RichEmbed to MessageEmbed. This is order to add discord.js v12 support. --- commands/report.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/report.js b/commands/report.js index 449259f..ac6f4c3 100644 --- a/commands/report.js +++ b/commands/report.js @@ -16,7 +16,7 @@ exports.run = (bot, message, args) => { let staffGroup = message.guild.roles.find(staffRole => staffRole.name === `${supportbot.StaffRole}`); - const rolemissing = new Discord.RichEmbed() + const rolemissing = new Discord.MessageEmbed() .setDescription(`:x: Looks like this server doesn't have the role **${supportbot.StaffRole}**`) .setColor(supportbot.EmbedColour); @@ -25,7 +25,7 @@ exports.run = (bot, message, args) => { console.error(err); }); } else { - const donothaverole = new Discord.RichEmbed() + const donothaverole = new Discord.MessageEmbed() .setDescription(`:x: Sorry! You cannot use this command with the role **${supportbot.StaffRole}**`) .setColor(supportbot.EmbedColour) if(!message.member.roles.has(staffGroup.id)) { @@ -38,7 +38,7 @@ exports.run = (bot, message, args) => { message.reply(":x: Sorry! Specify the reason of your report."); } else { let reportDesc = args.slice(1).join(" "); - const embed = new Discord.RichEmbed() + const embed = new Discord.MessageEmbed() .setTitle(`${supportbot.Report_Title}`) .setThumbnail(message.author.avatarURL) .addField("Report by:", `<@${message.author.id}>`, false)