We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
create_task
pydis_core_utils.scheduling
1 parent 75d4044 commit e3dc086Copy full SHA for e3dc086
bot/exts/fun/adventure.py
@@ -9,6 +9,7 @@
9
from discord.ext import commands
10
from discord.ext.commands import Cog as DiscordCog, Context, clean_content
11
from pydis_core.utils.logging import get_logger
12
+from pydis_core.utils.scheduling import create_task
13
14
from bot import constants
15
from bot.bot import Bot
@@ -191,7 +192,7 @@ def reset_timeout(self) -> None:
191
192
self.cancel_timeout()
193
194
# recreate the timeout task
- self._timeout_task = self._bot.loop.create_task(self.timeout())
195
+ self._timeout_task = create_task(self.timeout())
196
197
async def send_available_game_codes(self) -> None:
198
"""Sends a list of all available game codes."""
0 commit comments