From 0ef866a704c96feddf49ace313a791ae922a11d0 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sun, 24 Dec 2017 22:47:04 -0500 Subject: [PATCH] [commands] Fix MissingRequiredArgument param handling Documentation was incorrect, and we were throwing away the param we were passing. --- discord/ext/commands/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index c7d877462..139b75e91 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):