From 2d8f299b6b548769cf3d0dfa80d9f32c30ff24fe Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 25 Aug 2021 09:53:55 -0400 Subject: [PATCH] Use MISSING instead of None for HelpCommand.context It's basically just late-init --- discord/ext/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index 6a70726d3..afaacbfb2 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -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):