Use MISSING instead of None for HelpCommand.context

It's basically just late-init
This commit is contained in:
Rapptz 2021-08-25 09:53:55 -04:00
parent 3382d2e9e8
commit 2d8f299b6b

View File

@ -326,7 +326,7 @@ class HelpCommand:
self.command_attrs = attrs = options.pop('command_attrs', {})
attrs.setdefault('name', 'help')
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)
def copy(self):