From a0a1f24c1ce716571ad23c9d7e575dbd6ff48c65 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Tue, 20 Nov 2018 19:01:52 -0300 Subject: [PATCH] schemas: edit SEARCH_CHANNEL --- litecord/schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index a80f4f3..547de0a 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -594,7 +594,7 @@ PATCH_EMOJI = { SEARCH_CHANNEL = { - 'content': {'type': 'string', 'minlength': 1}, - 'include_nsfw': {'type': 'boolean'}, - 'offset': {'coerce': int} + 'content': {'type': 'string', 'minlength': 1, 'required': True}, + 'include_nsfw': {'coerce': bool, 'default': False}, + 'offset': {'coerce': int, 'default': 0} }