mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-23 15:35:47 +02:00
Deleting bookmarks, fix bug in menus
This commit is contained in:
parent
f70736b4d5
commit
152f84ed1c
5 changed files with 72 additions and 6 deletions
|
|
@ -17,11 +17,12 @@ class PageSource(ABC, Generic[T]):
|
|||
"""Base class that handles the embeds displayed in a menu"""
|
||||
|
||||
dataset: list[T]
|
||||
embeds: list[discord.Embed] = []
|
||||
embeds: list[discord.Embed]
|
||||
page_count: int
|
||||
per_page: int
|
||||
|
||||
def __init__(self, ctx: commands.Context, dataset: list[T], *, per_page: int = 10):
|
||||
self.embeds = []
|
||||
self.dataset = dataset
|
||||
self.per_page = per_page
|
||||
self.page_count = self._get_page_count()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue