From 917dafc2051095237f52c53b2b19cc253b9b4eac Mon Sep 17 00:00:00 2001 From: Quack Date: Tue, 13 Jan 2026 17:34:20 +0100 Subject: [PATCH] Added defer to undone command --- brunnerbot/modules/challenge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brunnerbot/modules/challenge.py b/brunnerbot/modules/challenge.py index 2c98b95..8852db4 100644 --- a/brunnerbot/modules/challenge.py +++ b/brunnerbot/modules/challenge.py @@ -317,6 +317,8 @@ async def undone(interaction: discord.Interaction): chall_db, _ = await check_challenge(interaction) assert isinstance(interaction.channel, discord.TextChannel) + await interaction.response.defer() + if not chall_db.solved: raise app_commands.AppCommandError("This challenge is not done yet!") @@ -325,7 +327,7 @@ async def undone(interaction: discord.Interaction): chall_db.save() await move_channel(interaction.channel, get_incomplete_category(interaction.guild)) - await interaction.response.send_message("Reopened challenge as not done") + await interaction.followup.send("Reopened challenge as not done") class CategoryCommands(app_commands.Group):