From 6e951283bca9fa9221cf867558ef50774952ba8b Mon Sep 17 00:00:00 2001 From: wlinator Date: Thu, 5 Sep 2024 03:33:07 -0400 Subject: [PATCH] feat: Add input validation for the prefix --- tux/cogs/guild/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tux/cogs/guild/config.py b/tux/cogs/guild/config.py index d0e3f99..3795857 100644 --- a/tux/cogs/guild/config.py +++ b/tux/cogs/guild/config.py @@ -327,7 +327,7 @@ class Config(commands.GroupCog, group_name="config"): async def config_set_prefix( self, interaction: discord.Interaction, - prefix: str, + prefix: app_commands.Range[str, 1, 10], ) -> None: """ Set the prefix for the guild.