mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-10 07:49:48 +00:00
[commands] Remove Commands: if no commands can be run in help command.
This commit is contained in:
parent
1ec7daf372
commit
b6bff5172a
@ -364,8 +364,10 @@ class HelpFormatter:
|
|||||||
|
|
||||||
self._add_subcommands_to_page(max_width, commands)
|
self._add_subcommands_to_page(max_width, commands)
|
||||||
else:
|
else:
|
||||||
self._paginator.add_line('Commands:')
|
filtered = sorted(filtered)
|
||||||
self._add_subcommands_to_page(max_width, sorted(filtered))
|
if filtered:
|
||||||
|
self._paginator.add_line('Commands:')
|
||||||
|
self._add_subcommands_to_page(max_width, filtered)
|
||||||
|
|
||||||
# add the ending note
|
# add the ending note
|
||||||
self._paginator.add_line()
|
self._paginator.add_line()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user