Added a default multiplier so the command doesnt error when getting the annual rank

This commit is contained in:
Lilac-Rose
2025-10-20 14:29:49 +02:00
parent c10f7591de
commit 77373670e6

View File

@@ -48,6 +48,8 @@ class Rank(commands.Cog):
remaining_cd = COOLDOWN - (time.time() - last_msg)
cooldown = f"{int(remaining_cd)}s" if remaining_cd > 0 else "None!"
multiplier = 1.0
# multiplier text only for lifetime
multipliers_text = []
if lifetime and isinstance(user, discord.Member) and user.guild == interaction.guild: