From 40daa5832611af87d21895acba874e674ba4b2d5 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Tue, 27 Jul 2021 11:53:29 +0100 Subject: [PATCH] Bug fix for player add and kick --- app/cogs/slashcommands/secondary/player_commands.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/cogs/slashcommands/secondary/player_commands.py b/app/cogs/slashcommands/secondary/player_commands.py index 345632e..0a9f5ea 100644 --- a/app/cogs/slashcommands/secondary/player_commands.py +++ b/app/cogs/slashcommands/secondary/player_commands.py @@ -134,9 +134,6 @@ class PlayerCommands(commands.Cog, name='Player Commands'): game = discord.utils.find(lambda x: x.id == categories[guildStr][str(ctx.channel.category.id)], ctx.guild.roles) rStr = str(game.id) if not (set(ctx.author.roles) & set([ctx.guild.get_role(x) for x in conf[str(ctx.guild.id)]['roles']['admin']]) or ctx.author == ctx.guild.owner): - if not set(ctx.author.roles) & set([ctx.guild.get_role(int(x)) for x in gms[str(ctx.guild.id)] if gms[str(ctx.guild.id)][x]]): - await ctx.send(f'```Error: You are not authorised to issue this command. The command may only be issued by an administrator or by a GM.```',hidden=True) - return if ctx.author.id != lookup[guildStr][rStr]['gm']: await ctx.send(f'```Error: You are not authorised to issue this command. A player may only be added to a game by the GM or by an administrator.```',hidden=True) return