def cog_check(self, ctx): """Check the channel of the context, return True if it is sent in either lobby, or in spec chat. Admins can bypass. """ return botutils.check_if_admin(ctx) or \ botutils.check_if_lobby(ctx) or \ botutils.check_if_spec(ctx)
def cog_check(self, ctx): """Check the channel of the context, return True if it is sent in lobby or in spectators chat Admins can bypass. """ return botutils.check_if_admin(ctx) or \ botutils.check_if_spec(ctx) or \ check_if_is_player(ctx)
def cog_check(self, ctx): return botutils.check_if_admin(ctx) and botc.check_if_not_player(ctx)
def cog_check(self, ctx): return botutils.check_if_admin(ctx)