Merge pull request #21 from real2two/patch-12
Changed all RichEmbed to MessageEmbed.
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user