Browse Source

dm_help_threshold cannot be None

pull/10286/head
Soheab_ 4 days ago
parent
commit
04a41a2767
  1. 4
      discord/ext/commands/help.py

4
discord/ext/commands/help.py

@ -75,7 +75,7 @@ if TYPE_CHECKING:
class _BaseHelpCommandOptions(_HelpCommandOptions, total=False):
sort_commands: bool
dm_help: Optional[bool]
dm_help_threshold: Optional[int]
dm_help_threshold: int
no_category: str
paginator: Paginator
commands_heading: str
@ -1365,7 +1365,7 @@ class MinimalHelpCommand(HelpCommand):
self.sort_commands: bool = options.pop('sort_commands', True)
self.commands_heading: str = options.pop('commands_heading', 'Commands')
self.dm_help: Optional[bool] = options.pop('dm_help', False)
self.dm_help_threshold: Optional[int] = options.pop('dm_help_threshold', 1000)
self.dm_help_threshold: int = options.pop('dm_help_threshold', 1000)
self.aliases_heading: str = options.pop('aliases_heading', 'Aliases:')
self.no_category: str = options.pop('no_category', 'No Category')

Loading…
Cancel
Save