schemas: use type=channel_type instead of coerce=ChannelType

This commit is contained in:
Luna 2019-02-05 21:14:53 -03:00
parent 27ffbd545d
commit c71a75dd3d
1 changed files with 2 additions and 2 deletions

View File

@ -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},