Skip to content

Commit 1661d95

Browse files
committed
Bug patch
1 parent 757bcd8 commit 1661d95

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.13.9
8+
9+
### Fixed
10+
- Fixed a bug where an error was raised when a message with received during a scheduled closure.
11+
712
# v2.13.8
813

914
### Fixed

core/thread.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,12 @@ async def send(self, message, destination=None,
362362
from_mod=False, note=False, anonymous=False):
363363
if self.close_task is not None:
364364
# cancel closing if a thread message is sent.
365-
tasks = asyncio.gather(
365+
await asyncio.gather(
366366
self.cancel_closure(),
367367
self.channel.send(embed=discord.Embed(
368368
color=discord.Color.red(),
369369
description='Scheduled close has been cancelled.'
370370
)))
371-
self.bot.loop.create_task(tasks)
372371

373372
if not self.ready:
374373
await self.wait_until_ready()

0 commit comments

Comments
 (0)