mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Use MISSING instead of None for HelpCommand.context
It's basically just late-init
This commit is contained in:
parent
3382d2e9e8
commit
2d8f299b6b
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user