Skip to content

Commit e3dc086

Browse files
committed
refactor: use create_task from pydis_core_utils.scheduling
1 parent 75d4044 commit e3dc086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot/exts/fun/adventure.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from discord.ext import commands
1010
from discord.ext.commands import Cog as DiscordCog, Context, clean_content
1111
from pydis_core.utils.logging import get_logger
12+
from pydis_core.utils.scheduling import create_task
1213

1314
from bot import constants
1415
from bot.bot import Bot
@@ -191,7 +192,7 @@ def reset_timeout(self) -> None:
191192
self.cancel_timeout()
192193

193194
# recreate the timeout task
194-
self._timeout_task = self._bot.loop.create_task(self.timeout())
195+
self._timeout_task = create_task(self.timeout())
195196

196197
async def send_available_game_codes(self) -> None:
197198
"""Sends a list of all available game codes."""

0 commit comments

Comments
 (0)