From 5281ffce602fd2d9d7194eb43db0c57f655b3496 Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Fri, 12 Jun 2020 23:30:34 +0100 Subject: [PATCH] overwrite Permissions to updateOverwrite --- commands/unlock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/unlock.js b/commands/unlock.js index 0193f88..e915019 100644 --- a/commands/unlock.js +++ b/commands/unlock.js @@ -23,8 +23,8 @@ exports.run = async(bot, message, args) => { .setColor(supportbot.ErrorColour); if (!message.member.roles.cache.has(staffGroup.id)) return message.reply({embed: rolerequired}); - message.channel.overwritePermissions(lockedRole, { READ_MESSAGES: true, SEND_MESSAGES: true }); - message.channel.overwritePermissions(staffGroup, { READ_MESSAGES: true, SEND_MESSAGES: true }); + message.channel.updateOverwrite(lockedRole, { READ_MESSAGES: true, SEND_MESSAGES: true }); + message.channel.updateOverwrite(staffGroup, { READ_MESSAGES: true, SEND_MESSAGES: true }); const lockmsg = new Discord.MessageEmbed() .setDescription(":white_check_mark: **Chat Un-Locked**")