From 1100294a204c0dc5e2e3b883f5955544b4fa8079 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 7 Jan 2019 19:28:29 -0500 Subject: [PATCH] Fix to category permissions --- infochannel/infochannel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index 829d4c3..4544b1c 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -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