Skip to content

Commit

Permalink
Update slash.py
Browse files Browse the repository at this point in the history
Wanted to look through the code specifically for the (get) command and why its only returning the first element. taking it out seemed to have fix the issue.
  • Loading branch information
vivinano committed Mar 6, 2022
1 parent c3cf412 commit 715d01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discum/utils/slash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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})
'''
'''

0 comments on commit 715d01d

Please sign in to comment.