This commit is contained in:
Erik 2022-08-05 20:16:30 +03:00
parent 9d70400a30
commit 4c5605f4e4
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -260,7 +260,7 @@ class MuteSetting extends Setting {
const configuration = channel.type === ChannelType.GuildText const configuration = channel.type === ChannelType.GuildText
? { permissions: { SendMessages: false, AddReactions: false }, bitwise: 0x800n } ? { permissions: { SendMessages: false, AddReactions: false }, bitwise: 0x800n }
: { permissions: { CONNECT: false, SendMessages: false, AddReactions: false }, bitwise: 0x100000n }; : { permissions: { Connect: false, SendMessages: false, AddReactions: false }, bitwise: 0x100000n };
try { try {
await channel.permissionOverwrites.create(role, configuration.permissions, { reason: super.reason(user) }); await channel.permissionOverwrites.create(role, configuration.permissions, { reason: super.reason(user) });