fix function signature of filter_commands() to ignore other args (#433)

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:25:02 -04:00 committed by GitHub
parent de0e25b09a
commit 8433a7ade0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = {}