Muted members can see channels but can't send messages

pull/8/head
sgoudham 4 years ago
parent d5db042a20
commit 4bc416cc4f

@ -288,7 +288,7 @@ class Moderation(Cog):
if role is None: if role is None:
muted = await ctx.guild.create_role(name="Muted") muted = await ctx.guild.create_role(name="Muted")
for channel in ctx.guild.channels: for channel in ctx.guild.channels:
await channel.set_permissions(muted, read_messages=False) await channel.set_permissions(muted, send_messages=False)
await mute_members(self, ctx, members, reason, muted) await mute_members(self, ctx, members, reason, muted)

Loading…
Cancel
Save