From a742223926122a9e772864447fe01bea6439a412 Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Thu, 4 May 2023 04:34:54 -0400 Subject: [PATCH] working on setup permission issue --- src/commands/setup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/setup.ts b/src/commands/setup.ts index 8ac483b..5dcbf07 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -206,7 +206,7 @@ The Discord Slash Command system will ensure you provide all the required detail await bot.helpers.editChannelPermissionOverrides(interaction.channelId, { id: managerRoleId, type: OverwriteTypes.Role, - allow: ['SEND_MESSAGES'], + allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'], }).catch((e: Error) => { utils.commonLoggers.channelUpdateError('setup.ts', 'manager-allow', e); mgrRoleErrorOut = true; @@ -217,6 +217,7 @@ The Discord Slash Command system will ensure you provide all the required detail !mgrRoleErrorOut && await bot.helpers.editChannelPermissionOverrides(interaction.channelId, { id: interaction.guildId, type: OverwriteTypes.Role, + allow: ['VIEW_CHANNEL'], deny: ['SEND_MESSAGES'], }).catch((e: Error) => { utils.commonLoggers.channelUpdateError('setup.ts', 'everyone-deny', e);