From bd5f5dffad793f0bccbf8876ceacc79372202b43 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 6 Apr 2020 18:14:28 -0400 Subject: [PATCH] Changed all RichEmbed to MessageEmbed. This is order to add discord.js v12 support. --- commands/lockchat.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/lockchat.js b/commands/lockchat.js index f84327f..b64729c 100644 --- a/commands/lockchat.js +++ b/commands/lockchat.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: false, SEND_MESSAGES: false }); 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 Locked**") .setColor(supportbot.EmbedColour) message.channel.send(lockmsg); @@ -39,4 +39,4 @@ exports.run = async(bot, message, args) => { exports.help = { name: supportbot.Lockchat_Command, -}; \ No newline at end of file +};