diff --git a/redbot/cogs/mod/mod.py b/redbot/cogs/mod/mod.py index 1056aadbb..49d2f962b 100644 --- a/redbot/cogs/mod/mod.py +++ b/redbot/cogs/mod/mod.py @@ -522,7 +522,7 @@ class Mod: click the user and select 'Copy ID'.""" guild = ctx.guild author = ctx.author - user = self.bot.get_user_info(user_id) + user = await self.bot.get_user_info(user_id) if not user: await ctx.send(_("Couldn't find a user with that ID!")) return diff --git a/redbot/core/modlog.py b/redbot/core/modlog.py index 52e20bc94..fc0d7909e 100644 --- a/redbot/core/modlog.py +++ b/redbot/core/modlog.py @@ -311,6 +311,7 @@ async def get_next_case_number(guild: discord.Guild) -> str: """ cases = sorted( (await _conf.guild(guild).get_attr("cases")), + key=lambda x: int(x), reverse=True ) return str(int(cases[0]) + 1) if cases else "1"