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)