Browse Source

[commands] Remove Commands: if no commands can be run in help command.

pull/1278/head
Rapptz 8 years ago
parent
commit
b6bff5172a
  1. 4
      discord/ext/commands/formatter.py

4
discord/ext/commands/formatter.py

@ -364,8 +364,10 @@ class HelpFormatter:
self._add_subcommands_to_page(max_width, commands) self._add_subcommands_to_page(max_width, commands)
else: else:
filtered = sorted(filtered)
if filtered:
self._paginator.add_line('Commands:') self._paginator.add_line('Commands:')
self._add_subcommands_to_page(max_width, sorted(filtered)) 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…
Cancel
Save