From 42df1b38de45e599b89d9e346cd8d1aab7efee26 Mon Sep 17 00:00:00 2001 From: Mai <3327003-Mai-san@users.noreply.gitlab.com> Date: Sun, 2 Aug 2020 23:40:39 +0000 Subject: [PATCH] Lower channel name minlength to 1 --- litecord/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index 82f2634..3469784 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -328,7 +328,7 @@ CHAN_OVERWRITE = { CHAN_CREATE = { - "name": {"type": "string", "minlength": 2, "maxlength": 100, "required": True}, + "name": {"type": "string", "minlength": 1, "maxlength": 100, "required": True}, "type": {"type": "channel_type", "default": ChannelType.GUILD_TEXT.value}, "position": {"coerce": int, "required": False}, "topic": {"type": "string", "minlength": 0, "maxlength": 1024, "required": False}, @@ -359,7 +359,7 @@ CHAN_CREATE = { CHAN_UPDATE = { **CHAN_CREATE, - **{"name": {"type": "string", "minlength": 2, "maxlength": 100, "required": False}}, + **{"name": {"type": "string", "minlength": 1, "maxlength": 100, "required": False}}, }