aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStarrFox <[email protected]>2019-12-06 14:13:16 -0600
committerRapptz <[email protected]>2019-12-17 00:12:42 -0500
commite79ccf3f4c939d6fb56e3b1fadf52e2e5e41193b (patch)
tree66c01dda3da5be3afc4d569e746bc53aea75b7ae
parentAdd support for xsalsa20_poly1305_lite (diff)
downloaddiscord.py-e79ccf3f4c939d6fb56e3b1fadf52e2e5e41193b.tar.xz
discord.py-e79ccf3f4c939d6fb56e3b1fadf52e2e5e41193b.zip
[commands] check if prefix is None in .pages
-rw-r--r--discord/ext/commands/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 1c9b4d9a..db066a36 100644
--- a/discord/ext/commands/help.py
+++ b/discord/ext/commands/help.py
@@ -157,7 +157,7 @@ class Paginator:
def pages(self):
"""Returns the rendered list of pages."""
# we have more than just the prefix in our current page
- if len(self._current_page) > 1:
+ if len(self._current_page) > (0 if self.prefix is None else 1):
self.close_page()
return self._pages