From feeb47d3da9d09882778f42929ffffc004ae0063 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Fri, 7 Mar 2025 11:24:45 -0500 Subject: [PATCH] Update the message when updating pad length. --- cogs/commands/set.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/commands/set.py b/cogs/commands/set.py index 94b3f7e..2750b0c 100644 --- a/cogs/commands/set.py +++ b/cogs/commands/set.py @@ -191,11 +191,15 @@ class SetCog(commands.Cog, name="Set command."): .where(col(CategoryGroup.id) == int(group_id)) ) group = session.scalar(stmt) + if group is None: + await interaction.response.send_message("Group was not found.", ephemeral=True) + return group.PadLength = length session.commit() await interaction.response.send_message( f"Category pad length set to {length} for {group.name}", ephemeral=True ) + await send_highscore_message(session, interaction.guild, group) @group.subcommand( description="Registers the channel for submission messages. Currently this information is deprecated."