mute create support for voice channel text
This commit is contained in:
parent
4f75472c37
commit
28458ffa2a
@ -250,7 +250,7 @@ class MuteSetting extends Setting {
|
|||||||
|
|
||||||
const configuration = channel.type === 'GUILD_TEXT'
|
const configuration = channel.type === 'GUILD_TEXT'
|
||||||
? { permissions: { SEND_MESSAGES: false, ADD_REACTIONS: false }, bitwise: 0x800n }
|
? { 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 {
|
try {
|
||||||
await channel.permissionOverwrites.create(role, configuration.permissions, { reason: super.reason(user) });
|
await channel.permissionOverwrites.create(role, configuration.permissions, { reason: super.reason(user) });
|
||||||
|
Loading…
Reference in New Issue
Block a user