aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhazhyk <[email protected]>2017-12-24 22:47:04 -0500
committerRapptz <[email protected]>2018-01-06 17:23:58 -0500
commit0ef866a704c96feddf49ace313a791ae922a11d0 (patch)
tree38239f94e127f4c6f2e4a675f9898e62034e3a8f
parentAdded a missing "to" in Message.raw_mentions documentation. (diff)
downloaddiscord.py-0ef866a704c96feddf49ace313a791ae922a11d0.tar.xz
discord.py-0ef866a704c96feddf49ace313a791ae922a11d0.zip
[commands] Fix MissingRequiredArgument param handling
Documentation was incorrect, and we were throwing away the param we were passing.
-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):