aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/help.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 375fe1be..8ad58a6a 100644
--- a/discord/ext/commands/help.py
+++ b/discord/ext/commands/help.py
@@ -889,7 +889,12 @@ class DefaultHelpCommand(HelpCommand):
self.paginator.add_line(signature, empty=True)
if command.help:
- self.paginator.add_line(command.help, empty=True)
+ try:
+ self.paginator.add_line(command.help, empty=True)
+ except RuntimeError:
+ for line in command.help.splitlines():
+ self.paginator.add_line(line)
+ self.paginator.add_line()
def get_destination(self):
ctx = self.context
@@ -1115,7 +1120,12 @@ class MinimalHelpCommand(HelpCommand):
self.paginator.add_line(signature, empty=True)
if command.help:
- self.paginator.add_line(command.help, empty=True)
+ try:
+ self.paginator.add_line(command.help, empty=True)
+ except RuntimeError:
+ for line in command.help.splitlines():
+ self.paginator.add_line(line)
+ self.paginator.add_line()
def get_destination(self):
ctx = self.context