From e6e442f11292d841ee87c014c456974fcd391cfa Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 14 Mar 2019 16:18:18 -0300 Subject: [PATCH] schemas: enable nullable for region fields Closes #40. --- litecord/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index 3683334..b6da1e0 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -249,7 +249,7 @@ PARTIAL_CHANNEL_GUILD_CREATE = { GUILD_CREATE = { 'name': {'type': 'guild_name'}, - 'region': {'type': 'voice_region'}, + 'region': {'type': 'voice_region', 'nullable': True}, 'icon': {'type': 'b64_icon', 'required': False, 'nullable': True}, 'verification_level': { @@ -272,7 +272,7 @@ GUILD_UPDATE = { 'type': 'guild_name', 'required': False }, - 'region': {'type': 'voice_region', 'required': False}, + 'region': {'type': 'voice_region', 'required': False, 'nullable': True}, 'icon': {'type': 'b64_icon', 'required': False, 'nullable': True}, 'splash': {'type': 'b64_icon', 'required': False, 'nullable': True},