From cae72fb9516ba4125ab5c2209297b933d9ec4f45 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 16 Feb 2019 21:17:08 -0300 Subject: [PATCH] checks: fix bug on channel type restrictions --- litecord/blueprints/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/checks.py b/litecord/blueprints/checks.py index 5a6846c..e897c21 100644 --- a/litecord/blueprints/checks.py +++ b/litecord/blueprints/checks.py @@ -66,7 +66,7 @@ async def channel_check(user_id, channel_id, *, ctype = ChannelType(chan_type) - if not isinstance(only, list): + if only and not isinstance(only, list): only = [only] if only and ctype not in only: