mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 05:23:03 +00:00 
			
		
		
		
	Use MISSING instead of None for HelpCommand.context
It's basically just late-init
This commit is contained in:
		| @@ -326,7 +326,7 @@ class HelpCommand: | |||||||
|         self.command_attrs = attrs = options.pop('command_attrs', {}) |         self.command_attrs = attrs = options.pop('command_attrs', {}) | ||||||
|         attrs.setdefault('name', 'help') |         attrs.setdefault('name', 'help') | ||||||
|         attrs.setdefault('help', 'Shows this message') |         attrs.setdefault('help', 'Shows this message') | ||||||
|         self.context: Optional[Context] = None |         self.context: Context = discord.utils.MISSING | ||||||
|         self._command_impl = _HelpCommandImpl(self, **self.command_attrs) |         self._command_impl = _HelpCommandImpl(self, **self.command_attrs) | ||||||
|  |  | ||||||
|     def copy(self): |     def copy(self): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user