mirror of https://gitlab.com/litecord/litecord.git
schemas: use type=channel_type instead of coerce=ChannelType
This commit is contained in:
parent
27ffbd545d
commit
c71a75dd3d
|
|
@ -308,8 +308,8 @@ CHAN_CREATE = {
|
||||||
'maxlength': 100, 'required': True
|
'maxlength': 100, 'required': True
|
||||||
},
|
},
|
||||||
|
|
||||||
'type': {'coerce': ChannelType,
|
'type': {'type': 'channel_type',
|
||||||
'default': ChannelType.GUILD_TEXT},
|
'default': ChannelType.GUILD_TEXT.value},
|
||||||
|
|
||||||
'position': {'coerce': int, 'required': False},
|
'position': {'coerce': int, 'required': False},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue