Skip to content

Commit

Permalink
Fix Traceback Error
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Apr 7, 2024
1 parent b2066fb commit bc72fce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cogs/economy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ async def transferpoints(
points: int = nextcord.SlashOption(description="How many points to transfer"),
):
user_id = str(interaction.user.id)
user_name, user_points = get_points(user_id)
user_name = interaction.user.display_name
user_name, user_points = get_points(user_id, user_name)
recipient_id = str(recipient.id)
recipient_name, recipient_points = get_points(recipient_id)
recipient_name = recipient.display_name
recipient_name, recipient_points = get_points(recipient_id, recipient_name)
if user_points < points:
await interaction.response.send_message(
f"You do not have enough {self.currency} to transfer.", ephemeral=True
Expand Down

0 comments on commit bc72fce

Please sign in to comment.