Skip to content

Commit

Permalink
update for permissions overwrite (#23)
Browse files Browse the repository at this point in the history
* update for permissions overwrite

Adding this so we could use R. Danny's tags
  • Loading branch information
TheMoksej authored Jul 31, 2020
1 parent 995590b commit d93eb9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d93eb9a

Please sign in to comment.