fix function signature of filter_commands() to ignore other args

discord.py changed the signature to add kwargs which are not used by
qrm's help command

fixes #432
This commit is contained in:
classabbyamp 2021-10-07 01:17:40 -04:00
parent de0e25b09a
commit 0d69071d30
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- a new way to support qrm's development.
### Changed
- Changed the licence to LiLiQ-Rplus-1.1
- Changed the licence to LiLiQ-Rplus-1.1.
### Fixed
- Issue where the help command errored.
## [2.7.3] - 2021-04-12

View File

@ -31,7 +31,7 @@ class QrmHelpCommand(commands.HelpCommand):
self.verify_checks = True
self.context: commands.Context
async def filter_commands(self, commands: Iterable[Command]) -> list[Command]:
async def filter_commands(self, commands: Iterable[Command], **kwargs) -> list[Command]:
def sort_by_cat(cmds):
ret = []
bolt_cmds = {}