Changed all RichEmbed to MessageEmbed.

This is order to add discord.js v12 support.
This commit is contained in:
Two authored and GitHub committed 2020-04-06 18:15:06 -04:00
1 parent 0bd990a9e3
commit 0c71fd7e59
1 file changed
+3 -3
+3 -3
View File
@@ -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)