[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
|
||||
-----------
|
||||
param: str
|
||||
param: :class:`inspect.Parameter`
|
||||
The argument that is missing.
|
||||
"""
|
||||
def __init__(self, param):
|
||||
self.param = param.name
|
||||
self.param = param
|
||||
super().__init__('{0.name} is a required argument that is missing.'.format(param))
|
||||
|
||||
class TooManyArguments(UserInputError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user