Skip to content

Commit

Permalink
Updating pyproject version, adjusting defer on waiver command
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed Aug 31, 2024
1 parent 964a4c2 commit bc75931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions harambot/cogs/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ async def matchups(
async def waivers(self, interaction: discord.Interaction, days: int = 1):
logger.info("Command:Waivers called in %i", interaction.guild_id)

await interaction.response.defer()
embed_functions_dict = {
"add/drop": utils.create_add_drop_embed,
"add": utils.create_add_embed,
Expand All @@ -331,12 +332,11 @@ async def waivers(self, interaction: discord.Interaction, days: int = 1):
guild_id=interaction.guild_id, timestamp=ts.timestamp()
)
if transactions:
await interaction.response.defer()
for transaction in transactions:
await interaction.followup.send(
embed=embed_functions_dict[transaction["type"]](
transaction
)
)
else:
await interaction.response.send_message("No transactions found")
await interaction.followup.send("No transactions found")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "harambot"
version = "0.4.1"
version = "0.4.1.post1"
description = "A Yahoo Fantasy Sports bot for Discord"
authors = ["DMcP89 <davemcpherson@wochstudios.com>"]
license = "MIT"
Expand Down

0 comments on commit bc75931

Please sign in to comment.