diff options
| author | 2020-06-08 19:52:46 -0700 | |
|---|---|---|
| committer | 2020-06-08 19:52:46 -0700 | |
| commit | b49f3e5f4e707dece2de38882be44405563d82e4 (patch) | |
| tree | 9c0d7d3fd440d5d79fc892ad886ecbd8bf8ca3ad /tests/test_base.py | |
| parent | Help channels: add a function to schedule cooldown expiration (diff) | |
Help channels: use cache to remove cooldowns or re-schedule them
Using the cache is more efficient since it can check only the users it
expects to have a cooldown rather than searching all guild members.
Furthermore, re-scheduling the cooldowns ensures members experience the
full duration of the cooldown. Previously, all cooldowns were removed,
regardless of whether they were expired.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions