aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-25 09:53:55 -0400
committerRapptz <[email protected]>2021-08-25 09:53:55 -0400
commit2d8f299b6b548769cf3d0dfa80d9f32c30ff24fe (patch)
tree285f54c6890792a05edc255e5eb011b391851b4f
parentUpdate documentation on select limits (diff)
downloaddiscord.py-2d8f299b6b548769cf3d0dfa80d9f32c30ff24fe.tar.xz
discord.py-2d8f299b6b548769cf3d0dfa80d9f32c30ff24fe.zip
Use MISSING instead of None for HelpCommand.context
It's basically just late-init
-rw-r--r--discord/ext/commands/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 6a70726d..afaacbfb 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):