From ae236f98808bd0079d040b7021ecdddd78002e8d Mon Sep 17 00:00:00 2001 From: Devon R Date: Sat, 2 Apr 2022 01:07:17 +0900 Subject: [PATCH] Fix #160 (timeout property on View in 2.0) --- jishaku/shim/paginator_200.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jishaku/shim/paginator_200.py b/jishaku/shim/paginator_200.py index 1541611e..6f74934b 100644 --- a/jishaku/shim/paginator_200.py +++ b/jishaku/shim/paginator_200.py @@ -70,7 +70,7 @@ def __init__(self, bot: commands.Bot, paginator: commands.Paginator, **kwargs): self.owner = kwargs.pop('owner', None) self.emojis = kwargs.pop('emoji', EMOJI_DEFAULT) - self.timeout = kwargs.pop('timeout', 7200) + self.timeout_length = kwargs.pop('timeout', 7200) self.delete_message = kwargs.pop('delete_message', False) self.sent_page_reactions = False @@ -86,7 +86,7 @@ def __init__(self, bot: commands.Bot, paginator: commands.Paginator, **kwargs): f'({self.page_size} > {self.max_page_size})' ) - super().__init__(timeout=self.timeout) + super().__init__(timeout=self.timeout_length) @property def pages(self): @@ -233,7 +233,7 @@ async def wait_loop(self): try: # pylint: disable=too-many-nested-blocks while not self.bot.is_closed(): - await asyncio.wait_for(self.send_lock_delayed(), timeout=self.timeout) + await asyncio.wait_for(self.send_lock_delayed(), timeout=self.timeout_length) self.update_view()