From e79ccf3f4c939d6fb56e3b1fadf52e2e5e41193b Mon Sep 17 00:00:00 2001 From: StarrFox <43019162+StarrFox@users.noreply.github.com> Date: Fri, 6 Dec 2019 14:13:16 -0600 Subject: [PATCH] [commands] check if prefix is None in .pages --- discord/ext/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index 1c9b4d9aa..db066a361 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