diff --git a/src/discord-cluster-manager/cogs/leaderboard_cog.py b/src/discord-cluster-manager/cogs/leaderboard_cog.py index 7b40f5c..2536f65 100644 --- a/src/discord-cluster-manager/cogs/leaderboard_cog.py +++ b/src/discord-cluster-manager/cogs/leaderboard_cog.py @@ -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 @@ -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 @@ -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, )