diff options
| author | 2020-02-29 09:30:37 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:42 -0700 | |
| commit | 2e7ac620027870ecbf21d3ff5e78553f96449eee (patch) | |
| tree | 6cbe29fc7474c15c5e4f2e04a4b6445c55d71514 | |
| parent | HelpChannels: explicitly specify if a task should be cancelled (diff) | |
HelpChannels: remove loop arg from schedule_task calls
| -rw-r--r-- | bot/cogs/help_channels.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index 12c64c39b..fc944999f 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -396,7 +396,7 @@ class HelpChannels(Scheduler, commands.Cog): f"scheduling it to be moved after {data.timeout} seconds." ) - self.schedule_task(self.bot.loop, channel.id, data) + self.schedule_task(channel.id, data) async def move_to_available(self) -> None: """Make a channel available.""" @@ -449,7 +449,7 @@ class HelpChannels(Scheduler, commands.Cog): log.trace(f"Scheduling #{channel.name} ({channel.id}) to become dormant in {timeout} sec.") data = ChannelTimeout(channel, timeout) - self.schedule_task(self.bot.loop, channel.id, data) + self.schedule_task(channel.id, data) async def notify(self) -> None: """ |