@@ -138,7 +138,6 @@ def _new_page(self) -> None:
138
138
self ._count = len (self .prefix ) + 1
139
139
self .close_page ()
140
140
141
-
142
141
def _split_remaining_words (self , line : str , max_chars : int ) -> tuple [str , str | None ]:
143
142
"""
144
143
Internal: split a line into two strings -- reduced_words and remaining_words.
@@ -185,6 +184,7 @@ def _split_remaining_words(self, line: str, max_chars: int) -> tuple[str, str |
185
184
@classmethod
186
185
async def paginate (
187
186
cls ,
187
+ pagination_emojis : _PaginationEmojis ,
188
188
lines : list [str ],
189
189
ctx : Context | discord .Interaction ,
190
190
embed : discord .Embed ,
@@ -200,7 +200,7 @@ async def paginate(
200
200
url : str | None = None ,
201
201
exception_on_empty_embed : bool = False ,
202
202
reply : bool = False ,
203
- allowed_roles : Sequence [int ] | None = None
203
+ allowed_roles : Sequence [int ] | None = None ,
204
204
) -> discord .Message | None :
205
205
"""
206
206
Use a paginator and set of reactions to provide pagination over a set of lines.
@@ -218,10 +218,10 @@ async def paginate(
218
218
Example:
219
219
>>> embed = discord.Embed()
220
220
>>> embed.set_author(name="Some Operation", url=url, icon_url=icon)
221
- >>> await LinePaginator.paginate([line for line in lines], ctx, embed)
221
+ >>> await LinePaginator.paginate(pagination_emojis, [line for line in lines], ctx, embed)
222
222
"""
223
- paginator = cls (prefix = prefix , suffix = suffix , max_size = max_size , max_lines = max_lines ,
224
- scale_to_size = scale_to_size )
223
+ paginator = cls (prefix = prefix , suffix = suffix , max_size = max_size ,
224
+ max_lines = max_lines , scale_to_size = scale_to_size , pagination_emojis = pagination_emojis )
225
225
current_page = 0
226
226
227
227
if not restrict_to_user :
0 commit comments