[docs]asyncdefformat_page(self,menu:BaseMenu,page:list[tuple[str,dict]])->discord.Embed:header_name=EightBitANSI.paint_yellow(_("Preset Name"),bold=True,underline=True)header_author=EightBitANSI.paint_yellow(_("Author"),bold=True,underline=True)data=[]forpreset_name,preset_datainpage:try:author=self.cog.bot.get_user(preset_data["author"])exceptTypeError:author=_("Bundled with PyLav")data.append({header_name:EightBitANSI.paint_white(preset_name),header_author:EightBitANSI.paint_blue(author),})returnawaitself.cog.pylav.construct_embed(messageable=menu.ctx,description=box(tabulate(data,headers="keys"),lang="ansi"))
[docs]defget_max_pages(self):""":class:`int`: The maximum number of pages required to paginate this sequence"""returnself._max_pagesor1