From 53b417889b0efe9e0148624c3eba0cc98c035575 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 27 Aug 2025 18:36:02 +0200 Subject: [PATCH] type dm_help as Optional[bool] on DefaultHelpCommand --- 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 d84a50681..3731ec649 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -1070,7 +1070,7 @@ class DefaultHelpCommand(HelpCommand): self.width: int = options.pop('width', 80) self.indent: int = options.pop('indent', 2) self.sort_commands: bool = options.pop('sort_commands', True) - self.dm_help: bool = options.pop('dm_help', False) + self.dm_help: Optional[bool] = options.pop('dm_help', False) self.dm_help_threshold: int = options.pop('dm_help_threshold', 1000) self.arguments_heading: str = options.pop('arguments_heading', 'Arguments:') self.commands_heading: str = options.pop('commands_heading', 'Commands:')