This commit is contained in:
2021-03-12 21:34:46 +01:00
parent 5fdfc38870
commit 63ac49fac0

2
bot.py
View File

@@ -530,7 +530,7 @@ async def groupvc_command(ctx: commands.Context):
reason = "Create temporary vc for group " + channel.name reason = "Create temporary vc for group " + channel.name
vc = await category.create_voice_channel(channel.name + "_vc", reason=reason) vc = await category.create_voice_channel(channel.name + "_vc", reason=reason)
await vc.edit(sync_permissions=True, reason=reason) await vc.edit(sync_permissions=True, reason=reason)
await vc.set_permissions(role, view_channel=True, connenct=True, reason=reason) await vc.set_permissions(role, view_channel=True, connect=True, reason=reason)
await ctx.send("Created temporary vc for this group") await ctx.send("Created temporary vc for this group")
return return