From d93eb9ac451edd7f8c0e8807fde7ef4222ebe335 Mon Sep 17 00:00:00 2001 From: Moksej <58531286+TheMoksej@users.noreply.github.com> Date: Fri, 31 Jul 2020 11:27:09 +0200 Subject: [PATCH] update for permissions overwrite (#23) * update for permissions overwrite Adding this so we could use R. Danny's tags --- cogs/tickets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/tickets.py b/cogs/tickets.py index d0d3e1b..d0281e7 100644 --- a/cogs/tickets.py +++ b/cogs/tickets.py @@ -66,11 +66,13 @@ async def open_ticket(self, ctx, bot: discord.User): owner = ctx.guild.get_member(int(bot_db["owner"]["id"])) mods = ctx.guild.get_role(int(self.bot.settings["roles"]["mod"])) + serverbots = ctx.guild.get_role(716174811629486141) # bot power role overwrites = { ctx.guild.default_role: discord.PermissionOverwrite(read_messages=False), owner: discord.PermissionOverwrite(read_messages=True, send_messages=True), - mods: discord.PermissionOverwrite(read_messages=True, send_messages=True) + mods: discord.PermissionOverwrite(read_messages=True, send_messages=True), + serverbots: discord.PermissionOverwrite(read_messages=True, send_messages=True) } channel = await category.create_text_channel(name=bot.name.lower(), overwrites=overwrites,