From 3bc58e6e11b9691755eec4fc7ea1cf49ad45ef3b Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 1 Jul 2019 23:14:51 +0300 Subject: [PATCH] get_user_info -> fetch_user #46 --- cogs/mod.py | 2 +- cogs/robocronp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/mod.py b/cogs/mod.py index e8d5249..0aa6ce8 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -193,7 +193,7 @@ class Mod(Cog): @commands.command(aliases=["softban"]) async def hackban(self, ctx, target: int, *, reason: str = ""): """Bans a user with their ID, doesn't message them, staff only.""" - target_user = await self.bot.get_user_info(target) + target_user = await self.bot.fetch_user(target) target_member = ctx.guild.get_member(target) # Hedge-proofing the code if target == ctx.author.id: diff --git a/cogs/robocronp.py b/cogs/robocronp.py index 2b6125f..47dee7f 100644 --- a/cogs/robocronp.py +++ b/cogs/robocronp.py @@ -61,7 +61,7 @@ class Robocronp(Cog): try: job_details = ctab[jobtype][timestamp][job_name] if jobtype == "unban": - target_user = await self.bot.get_user_info(job_name) + target_user = await self.bot.fetch_user(job_name) target_guild = self.bot.get_guild(job_details["guild"]) delete_job(timestamp, jobtype, job_name) await target_guild.unban(target_user, @@ -79,7 +79,7 @@ class Robocronp(Cog): elif jobtype == "remind": text = job_details["text"] added_on = job_details["added"] - target = await self.bot.get_user_info(int(job_name)) + target = await self.bot.fetch_user(int(job_name)) if target: await target.send("You asked to be reminded about" f" `{text}` on {added_on}.")