mute create support for voice channel text

This commit is contained in:
Erik 2022-06-13 12:42:18 +03:00
parent 4f75472c37
commit 28458ffa2a
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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) });