diff options
| author | 2020-02-29 09:30:16 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:42 -0700 | |
| commit | 13d4c82ffafe8ba6cd0a6dab061bef02547d66b1 (patch) | |
| tree | 4e02cfd17771e5f7a471e1a1e367285be22bdc4e /tests | |
| parent | Scheduler: add a method to cancel all tasks (diff) | |
HelpChannels: explicitly specify if a task should be cancelled
When rescheduling an idle channel, the task will only be cancelled if
the function was told the channel should currently have a task
scheduled. This means warnings for missing tasks will appear when they
should.
The previous approach of checking if a task exists was flawed because
it had no way to tell whether a task *should* exist. It assumed nothing
is wrong if a task doesn't exist.
Currently, the only case when a task shouldn't exist is when the
cog is initialised and channels from the bot's previous life are being
scheduled.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions