mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
[commands] Fix MissingRequiredArgument param handling
Documentation was incorrect, and we were throwing away the param we were passing.
This commit is contained in:
parent
b268d81649
commit
0ef866a704
@ -72,11 +72,11 @@ class MissingRequiredArgument(UserInputError):
|
|||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
-----------
|
-----------
|
||||||
param: str
|
param: :class:`inspect.Parameter`
|
||||||
The argument that is missing.
|
The argument that is missing.
|
||||||
"""
|
"""
|
||||||
def __init__(self, param):
|
def __init__(self, param):
|
||||||
self.param = param.name
|
self.param = param
|
||||||
super().__init__('{0.name} is a required argument that is missing.'.format(param))
|
super().__init__('{0.name} is a required argument that is missing.'.format(param))
|
||||||
|
|
||||||
class TooManyArguments(UserInputError):
|
class TooManyArguments(UserInputError):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user