overwrite Permissions to updateOverwrite

This commit is contained in:
ItzEmerald authored and GitHub committed 2020-06-12 23:30:34 +01:00
1 parent 2f84fd3b33
commit 5281ffce60
1 file changed
+2 -2
+2 -2
View File
@@ -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**")