From 1d5dee013934d7b7c953ce61210ccfcefb4ba398 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:25:18 +0530 Subject: [PATCH] Fix issue in `/leaderboard_levels` where bot was unable to fetch user context data from API --- cogs/levelling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/levelling.py b/cogs/levelling.py index 3d652131..dca8c00a 100644 --- a/cogs/levelling.py +++ b/cogs/levelling.py @@ -74,7 +74,7 @@ async def leaderboard_levels(self, ctx: ApplicationContext): if y < 10: try: if levels_dict[i] != 0: - user_context = await commands.fetch_user(i) + user_context = await ctx.bot.fetch_user(i) if not user_context.bot and levels_dict[i] != 0: print(i, levels_dict[i]) if y == 1: yf = ":first_place:"