adjusting entries per page

pull/8/head
sgoudham 4 years ago
parent 2c9024636b
commit cf829cd1e6

@ -63,7 +63,7 @@ class Pages:
Our permissions for the channel. Our permissions for the channel.
""" """
def __init__(self, ctx, *, entries, per_page=4, show_entry_count=True): def __init__(self, ctx, *, entries, per_page=6, show_entry_count=True):
self.bot = ctx.bot self.bot = ctx.bot
self.prefix = ctx.prefix self.prefix = ctx.prefix
@ -370,7 +370,7 @@ def _command_signature(cmd):
class HelpPaginator(Pages): class HelpPaginator(Pages):
def __init__(self, ctx, entries, *, per_page=6): def __init__(self, ctx, entries, *, per_page=8):
super().__init__(ctx, entries=entries, per_page=per_page) super().__init__(ctx, entries=entries, per_page=per_page)
self.reaction_emojis.append(('\N{WHITE QUESTION MARK ORNAMENT}', self.show_bot_help)) self.reaction_emojis.append(('\N{WHITE QUESTION MARK ORNAMENT}', self.show_bot_help))
self.total = len(entries) self.total = len(entries)
@ -447,7 +447,7 @@ class HelpPaginator(Pages):
entries = sorted(ctx.bot.commands, key=key) entries = sorted(ctx.bot.commands, key=key)
nested_pages = [] nested_pages = []
per_page = 4 per_page = 6
# 0: (cog, desc, commands) (max len == 9) # 0: (cog, desc, commands) (max len == 9)
# 1: (cog, desc, commands) (max len == 9) # 1: (cog, desc, commands) (max len == 9)

Loading…
Cancel
Save