From 110425b3222c4d4e0cec134909f48a041e47971d Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Sun, 12 Jul 2020 01:10:28 +0200 Subject: Ban command to ban admins --- cogs/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index 0099182..415d25f 100755 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -172,13 +172,13 @@ class Admin(commands.Cog): embed = discord.Embed(title = "You can't ban me, I'm an almighty bot") await ctx.send(embed = embed) continue - await guild.ban(member, reason="A reason idk") + await ctx.guild.ban(member, reason=reason) await ctx.send("{0.mention} has been banned by {1.mention} for *{2}*".format(member, ctx.author, reason)) if mute_minutes > 0: await asyncio.sleep(mute_minutes * 60) for member in members: - await guild.unban(member, reason="Time is up") + await ctx.guild.unban(member, reason="Time is up") @commands.command() @commands.check(is_botmaster) -- cgit v1.2.3