aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-29 09:30:16 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:42 -0700
commit13d4c82ffafe8ba6cd0a6dab061bef02547d66b1 (patch)
tree4e02cfd17771e5f7a471e1a1e367285be22bdc4e /tests
parentScheduler: 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