Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion brunnerbot/modules/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")

Expand All @@ -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):
Expand Down