Skip to content

Commit

Permalink
adding guild id to api calls in trade command, updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed Oct 1, 2024
1 parent e378bbc commit 0d88573
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 198 deletions.
6 changes: 3 additions & 3 deletions harambot/cogs/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def trade(self, interaction: discord.Interaction):
)
return

teams = self.yahoo_api.get_teams()
teams = self.yahoo_api.get_teams(guild_id=interaction.guild_id)
if teams is None:
await interaction.followup.send(self.error_message)
return
Expand All @@ -141,7 +141,7 @@ async def trade(self, interaction: discord.Interaction):
player_set0.append(player["name"])
api_details = (
self.get_player_text(
self.yahoo_api.get_player_details(player["name"])
self.yahoo_api.get_player_details(player["name"], guild_id=interaction.guild_id)
)
+ "\n"
)
Expand All @@ -155,7 +155,7 @@ async def trade(self, interaction: discord.Interaction):
player_set1_details = ""
for player in latest_trade["tradee_players"]:
player_set1.append(player["name"])
player_details = self.yahoo_api.get_player_details(player["name"])
player_details = self.yahoo_api.get_player_details(player["name"], guild_id=interaction.guild_id)
if player_details is None:
await interaction.followup.send(self.error_message)
return
Expand Down
Loading

0 comments on commit 0d88573

Please sign in to comment.