Skip to content

Commit 288e13f

Browse files
committed
Fix place where auto_close_task gets created
1 parent 29495ac commit 288e13f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/thread.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,6 @@ async def reply(self, message: discord.Message, anonymous: bool = False) -> None
515515
)
516516
)
517517
)
518-
519-
await self._restart_close_timer()
520518

521519
await asyncio.gather(*tasks)
522520

@@ -530,6 +528,9 @@ async def send(
530528
note: bool = False,
531529
anonymous: bool = False,
532530
) -> None:
531+
532+
self.bot.loop.create_task(self._restart_close_timer()) # Start or restart thread auto close
533+
533534
if self.close_task is not None:
534535
# cancel closing if a thread message is sent.
535536
self.bot.loop.create_task(self.cancel_closure())

0 commit comments

Comments
 (0)