From c71a75dd3de01ce465e2ac2536730194651d0171 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 5 Feb 2019 21:14:53 -0300 Subject: [PATCH] schemas: use type=channel_type instead of coerce=ChannelType --- litecord/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index f6f9062..e336eba 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -308,8 +308,8 @@ CHAN_CREATE = { 'maxlength': 100, 'required': True }, - 'type': {'coerce': ChannelType, - 'default': ChannelType.GUILD_TEXT}, + 'type': {'type': 'channel_type', + 'default': ChannelType.GUILD_TEXT.value}, 'position': {'coerce': int, 'required': False},