Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit 63ac9ea

Browse files
author
Mattlau
authored
add kwargs to start that get passed to ctx.send
1 parent 65d0bfc commit 63ac9ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Paginator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, *,
4141

4242
super().__init__(timeout=timeout)
4343

44-
async def start(self, ctx: typing.Union[discord.Interaction, commands.Context], pages: list[discord.Embed]):
44+
async def start(self, ctx: typing.Union[discord.Interaction, commands.Context], pages: list[discord.Embed], **kwargs):
4545

4646
if isinstance(ctx, discord.Interaction):
4747
ctx = await commands.Context.from_interaction(ctx)
@@ -62,7 +62,7 @@ async def start(self, ctx: typing.Union[discord.Interaction, commands.Context],
6262
self.add_item(self.page_counter)
6363
self.add_item(self.NextButton)
6464

65-
self.message = await ctx.send(embed=self.pages[self.InitialPage], view=self)
65+
self.message = await ctx.send(embed=self.pages[self.InitialPage], view=self, **kwargs)
6666

6767
async def previous(self):
6868
if self.current_page == 0:

0 commit comments

Comments
 (0)