Skip to content

Commit

Permalink
switch to interaction.followup.send in some places in leaderboard cog (
Browse files Browse the repository at this point in the history
  • Loading branch information
b9r5 authored Dec 13, 2024
1 parent 77f81cb commit 598e182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/discord-cluster-manager/cogs/leaderboard_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def submit_github(
# TODO: query that gets reference code given leaderboard name
leaderboard_item = db.get_leaderboard(leaderboard_name)
if not leaderboard_item:
await interaction.response.send_message(
await interaction.followup.send(
f"Leaderboard {leaderboard_name} not found.", ephemeral=True
)
return
Expand All @@ -136,7 +136,7 @@ async def submit_github(
github_cog = self.bot.get_cog("GitHubCog")

if not all([github_cog]):
await interaction.response.send_message("❌ Required cogs not found!")
await interaction.followup.send("❌ Required cogs not found!")
return

github_command = github_cog.run_github
Expand Down Expand Up @@ -181,7 +181,7 @@ async def submit_github(
+ f"Runtime: {score} ms\n",
)
except ValueError:
await interaction.response.send_message(
await interaction.followup.send(
"Invalid date format. Please use YYYY-MM-DD or YYYY-MM-DD HH:MM",
ephemeral=True,
)
Expand Down

0 comments on commit 598e182

Please sign in to comment.