@bot.command(pass_context=True) @commands.has_role("Moderator") async def unban2(ctx): mesg = ctx.message.content[8:] banned = client.get_user_info(mesg) await bot.unban(ctx.message.server, banned) await bot.say("Unbanned!")