mirror of
https://github.com/miaowware/qrm2.git
synced 2025-06-25 04:55:20 -04:00
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:
parent
de0e25b09a
commit
8433a7ade0
@ -8,7 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
### Added
|
### Added
|
||||||
- a new way to support qrm's development.
|
- a new way to support qrm's development.
|
||||||
### Changed
|
### 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
|
## [2.7.3] - 2021-04-12
|
||||||
|
@ -31,7 +31,7 @@ class QrmHelpCommand(commands.HelpCommand):
|
|||||||
self.verify_checks = True
|
self.verify_checks = True
|
||||||
self.context: commands.Context
|
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):
|
def sort_by_cat(cmds):
|
||||||
ret = []
|
ret = []
|
||||||
bolt_cmds = {}
|
bolt_cmds = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user