From 8a8597afef9c3e46fac3e348682c7ef005143850 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 6 Apr 2020 18:15:23 -0400 Subject: [PATCH] Changed all RichEmbed to MessageEmbed. This is order to add discord.js v12 support. --- commands/unlock.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/unlock.js b/commands/unlock.js index e48daee..99a8238 100644 --- a/commands/unlock.js +++ b/commands/unlock.js @@ -17,12 +17,12 @@ exports.run = async(bot, message, args) => { let staffGroup = message.guild.roles.find(staffRole => staffRole.name === `${supportbot.StaffRole}`) let lockedRole = message.guild.roles.find(lc => lc.name === `${supportbot.locked_role}`) - 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) @@ -30,7 +30,7 @@ exports.run = async(bot, message, args) => { message.channel.overwritePermissions(lockedRole, { READ_MESSAGES: true, SEND_MESSAGES: true }); message.channel.overwritePermissions(staffGroup, { READ_MESSAGES: true, SEND_MESSAGES: true }); - const lockmsg = new Discord.RichEmbed() + const lockmsg = new Discord.MessageEmbed() .setDescription(":white_check_mark: **Chat Un-Locked**") .setColor(supportbot.EmbedColour); message.channel.send(lockmsg); @@ -39,4 +39,4 @@ exports.run = async(bot, message, args) => { exports.help = { name: supportbot.UnLockchat_Command, -} \ No newline at end of file +}