Changed all RichEmbed to MessageEmbed.
This is order to add discord.js v12 support.
This commit is contained in:
1 file changed
+4
-4
@@ -17,17 +17,17 @@ 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)
|
||||
if (!staffGroup) return message.reply(rolemissing).catch(err=>{console.error(err)})
|
||||
|
||||
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)) return message.reply(donothaverole)
|
||||
|
||||
const embed = new Discord.RichEmbed()
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(`${supportbot.Announcement_Title}`)
|
||||
.setDescription(args.join(" "))
|
||||
.setTimestamp()
|
||||
@@ -41,7 +41,7 @@ exports.run = (bot, message, args) => {
|
||||
ac.send(embed);
|
||||
});
|
||||
|
||||
const AccSuccessEmbed = new Discord.RichEmbed()
|
||||
const AccSuccessEmbed = new Discord.MessageEmbed()
|
||||
.setTitle("Announcement Created")
|
||||
.setDescription(`👍 Successfully sent your announcement to <#${ac.id}>`)
|
||||
.setColor(supportbot.EmbedColour)
|
||||
|
||||
Reference in new issue
Block a user