Fix to category permissions

pull/47/head
bobloy 6 years ago
parent c211749a5b
commit 1100294a20

@ -72,9 +72,10 @@ class InfoChannel(Cog):
await ctx.send("Done!")
async def make_infochannel(self, guild: discord.Guild):
category: discord.CategoryChannel = await guild.create_category("────Server Stats────")
overwrites = {guild.default_role: discord.PermissionOverwrite(connect=False),
guild.me: discord.PermissionOverwrite(manage_channels=True, connect=True)}
overwrites = {guild.default_role: discord.PermissionOverwrite(connect=False)}
category: discord.CategoryChannel = await guild.create_category("────Server Stats────", overwrites=overwrites)
channel = await guild.create_voice_channel(
"Placeholder", category=category, reason="InfoChannel make", overwrites=overwrites

Loading…
Cancel
Save