mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-24 18:13:00 +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:
		| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user