Fix temporary vc permissions

This commit is contained in:
2021-03-12 21:31:54 +01:00
parent c028ed56cb
commit 5fdfc38870

9
bot.py
View File

@@ -527,11 +527,10 @@ async def groupvc_command(ctx: commands.Context):
await ctx.send("Temporary group channel already exists.") await ctx.send("Temporary group channel already exists.")
return return
vc = await category.create_voice_channel(channel.name + "_vc", reason = "Create temporary vc for group " + channel.name
overwrites={ vc = await category.create_voice_channel(channel.name + "_vc", reason=reason)
role: discord.PermissionOverwrite(view_channel=True) await vc.edit(sync_permissions=True, reason=reason)
}, await vc.set_permissions(role, view_channel=True, connenct=True, reason=reason)
reason="Create temporary vc for group " + channel.name)
await ctx.send("Created temporary vc for this group") await ctx.send("Created temporary vc for this group")
return return