From 28458ffa2a3f8639872f6f7b9452b7a2f0acc9e2 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 13 Jun 2022 12:42:18 +0300 Subject: [PATCH] mute create support for voice channel text --- src/structure/components/settings/moderation/Mute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/settings/moderation/Mute.js b/src/structure/components/settings/moderation/Mute.js index 5695622..1f0edae 100644 --- a/src/structure/components/settings/moderation/Mute.js +++ b/src/structure/components/settings/moderation/Mute.js @@ -250,7 +250,7 @@ class MuteSetting extends Setting { const configuration = channel.type === 'GUILD_TEXT' ? { permissions: { SEND_MESSAGES: false, ADD_REACTIONS: false }, bitwise: 0x800n } - : { permissions: { CONNECT: false }, bitwise: 0x100000n }; + : { permissions: { CONNECT: false, SEND_MESSAGES: false, ADD_REACTIONS: false }, bitwise: 0x100000n }; try { await channel.permissionOverwrites.create(role, configuration.permissions, { reason: super.reason(user) });