mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Add positional-only arguments in more places
This commit is contained in:
@ -343,12 +343,16 @@ class HelpCommand:
|
||||
bot.remove_command(self._command_impl.name)
|
||||
self._command_impl._eject_cog()
|
||||
|
||||
def add_check(self, func):
|
||||
def add_check(self, func, /):
|
||||
"""
|
||||
Adds a check to the help command.
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
|
||||
``func`` parameter is now positional-only.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
func
|
||||
@ -357,7 +361,7 @@ class HelpCommand:
|
||||
|
||||
self._command_impl.add_check(func)
|
||||
|
||||
def remove_check(self, func):
|
||||
def remove_check(self, func, /):
|
||||
"""
|
||||
Removes a check from the help command.
|
||||
|
||||
@ -366,6 +370,10 @@ class HelpCommand:
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
|
||||
``func`` parameter is now positional-only.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
func
|
||||
|
Reference in New Issue
Block a user