I want to mute everybody in a voice channel changing the permission to speak, but when I do this it no sync with the category channel anymore.
cat = ctx.guild.get_channel(categorychannel)
everyone = ctx.guild.default_role
channel = await ctx.guild.create_voice_channel("test", category=cat)
await channel.set_permissions(everyone, speak=False)
So I'm trying to get the category channel permissions and set it to a voice channel, But for some reason it's not working.
cat = ctx.guild.get_channel(categorychannel)
everyone = ctx.guild.default_role
perm = cat.overwrites_for(everyone)
perm.speak = False
channel = await ctx.guild.create_voice_channel("test", category=cat)
await channel.set_permissions(everyone, overwrite=perm)
Can anyone help me?