aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py
index c7d87746..139b75e9 100644
--- a/discord/ext/commands/errors.py
+++ b/discord/ext/commands/errors.py
@@ -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):