diff --git a/discum/utils/slash.py b/discum/utils/slash.py index c2b7834..835021e 100644 --- a/discum/utils/slash.py +++ b/discum/utils/slash.py @@ -84,7 +84,7 @@ def get(self, cmdList, inputs={}): current_cmd = next( ( c for c in current_cmd["options"] - if c["name"] == cmd and c["type"] in (1, 2) or self._isAtOuterLvl(c) + if c["name"] == cmd and c["type"] in (1, 2) ), None ) @@ -131,4 +131,4 @@ def get(self, cmdList, inputs={}): s.metadata(['saved', 'queues']) s.get(['saved', 'queues', 'delete'], {'name':'poop'}) s.get(['choose'], {'1st':1, '2nd':2}) -''' \ No newline at end of file +'''