1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00

feat: Add input validation for the prefix

This commit is contained in:
wlinator 2024-09-05 03:33:07 -04:00
parent 962e13656e
commit 6e951283bc

View file

@ -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.