mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-23 00:56:05 +00:00
[commands] check if prefix is None in .pages
This commit is contained in:
parent
bcbfc354cf
commit
e79ccf3f4c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user