Merge pull request #422 from miaowware/help-e-fix

fix issue with help command/categories
This commit is contained in:
classabbyamp 2021-04-12 19:02:37 -04:00 committed by GitHub
commit f55738a8a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Issue where `?help` might not work for all people.
## [2.7.1] - 2021-04-12

View File

@ -50,7 +50,8 @@ class QrmHelpCommand(commands.HelpCommand):
ret.sort(key=lambda c: c.__original_kwargs__["category"].name)
for cat in cmn.BoltCats:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)
if cat in bolt_cmds:
ret += sorted(bolt_cmds[cat], key=lambda c: c.name)
return ret