aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-07-11 23:10:28 +0000
committerGitHub <noreply@github.com>2020-07-11 23:10:28 +0000
commit110425b3222c4d4e0cec134909f48a041e47971d (patch)
tree0b2eb6a953b693ffda6391172134ad1e75d4e008 /cogs
parentc2c05f461db8481f3546efeb24507450fad43059 (diff)
downloadsteve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar.gz
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar.bz2
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar.lz
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar.xz
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.tar.zst
steve-bot-110425b3222c4d4e0cec134909f48a041e47971d.zip
Ban command to ban admins
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/admin.py4
1 files 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)