diff --git a/bot/extensions/levelling/commands.py b/bot/extensions/levelling/commands.py index 151e3d66..0331ed8f 100644 --- a/bot/extensions/levelling/commands.py +++ b/bot/extensions/levelling/commands.py @@ -290,7 +290,7 @@ async def rank(self, interaction: core.InteractionType, member: discord.Member = # Run the image generation in a thread to avoid blocking loop = asyncio.get_event_loop() result = await loop.run_in_executor( - None, self.generate_rank_image, member, avatar_bytes, record.count + 1, level, curr_xp, next_xp + None, self.generate_rank_image, member.display_name, avatar_bytes, record.count + 1, level, curr_xp, next_xp ) # Send result as image