From ac23687696d3ab90821fd694f79e3189b620b8af Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 02:22:26 -0600 Subject: [PATCH] Corrected what http client to retrieve --- cogs/mod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/mod.py b/cogs/mod.py index 30e5905..42eea4a 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -52,7 +52,7 @@ class Mod: # Lets only accept an int for this method, in order to ensure only an ID is provided # Due to that though, we need to ensure a string is passed as the member's ID try: - await discord.http.unban(member_id, ctx.guild.id) + await self.bot.http.unban(member_id, ctx.guild.id) await ctx.send("\N{OK HAND SIGN}") except discord.Forbidden: await ctx.send("But I can't, muh permissions >:c") @@ -72,7 +72,7 @@ class Mod: # Lets first check if a user ID was provided, as that will be the easiest case to ban if member.isdigit(): try: - await discord.http.ban(member, ctx.guild.id) + await self.bot.http.ban(member, ctx.guild.id) await ctx.send("\N{OK HAND SIGN}") except discord.Forbidden: await ctx.send("But I can't, muh permissions >:c")