mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-06-04 08:53:49 -04:00
working on setup permission issue
This commit is contained in:
@@ -206,7 +206,7 @@ The Discord Slash Command system will ensure you provide all the required detail
|
|||||||
await bot.helpers.editChannelPermissionOverrides(interaction.channelId, {
|
await bot.helpers.editChannelPermissionOverrides(interaction.channelId, {
|
||||||
id: managerRoleId,
|
id: managerRoleId,
|
||||||
type: OverwriteTypes.Role,
|
type: OverwriteTypes.Role,
|
||||||
allow: ['SEND_MESSAGES'],
|
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES'],
|
||||||
}).catch((e: Error) => {
|
}).catch((e: Error) => {
|
||||||
utils.commonLoggers.channelUpdateError('setup.ts', 'manager-allow', e);
|
utils.commonLoggers.channelUpdateError('setup.ts', 'manager-allow', e);
|
||||||
mgrRoleErrorOut = true;
|
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, {
|
!mgrRoleErrorOut && await bot.helpers.editChannelPermissionOverrides(interaction.channelId, {
|
||||||
id: interaction.guildId,
|
id: interaction.guildId,
|
||||||
type: OverwriteTypes.Role,
|
type: OverwriteTypes.Role,
|
||||||
|
allow: ['VIEW_CHANNEL'],
|
||||||
deny: ['SEND_MESSAGES'],
|
deny: ['SEND_MESSAGES'],
|
||||||
}).catch((e: Error) => {
|
}).catch((e: Error) => {
|
||||||
utils.commonLoggers.channelUpdateError('setup.ts', 'everyone-deny', e);
|
utils.commonLoggers.channelUpdateError('setup.ts', 'everyone-deny', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user