diff options
| author | 2020-06-01 19:09:22 +0200 | |
|---|---|---|
| committer | 2020-06-01 19:09:22 +0200 | |
| commit | eac3be892a31a508f966fd73f1802086d83ed954 (patch) | |
| tree | 05714cd3061ca8a9b401d31e686120a09a51a22f /tests/test_helpers.py | |
| parent | Merge pull request #973 from python-discord/kwzrd/improve-free (diff) | |
Use Scheduler instead of asyncio.sleep on silence cog
`asyncio.sleep` doesn't provide us with the ability to stop that timer,
while in most of the cases, this is fine, there is a possibility that
channel will be unsilenced manually and silenced again, but this sleep from
the first silence will cancel the second (new) silence.
This will replace this `asyncio.sleep` with Scheduler which provides the
ability to cancel the unsilencing task when aborted manually.
That means we also have the ability to send a response if the channel is
not silenced and someone tries to unsilence it.
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions