mirror of https://gitlab.com/litecord/litecord.git
checks: fix bug on channel type restrictions
This commit is contained in:
parent
3247323a95
commit
cae72fb951
|
|
@ -66,7 +66,7 @@ async def channel_check(user_id, channel_id, *,
|
||||||
|
|
||||||
ctype = ChannelType(chan_type)
|
ctype = ChannelType(chan_type)
|
||||||
|
|
||||||
if not isinstance(only, list):
|
if only and not isinstance(only, list):
|
||||||
only = [only]
|
only = [only]
|
||||||
|
|
||||||
if only and ctype not in only:
|
if only and ctype not in only:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue