diff options
| author | 2020-07-31 19:52:01 +0200 | |
|---|---|---|
| committer | 2020-07-31 19:52:01 +0200 | |
| commit | da484b1b22a0d346a1dbc1abf2ffe1027a7e5031 (patch) | |
| tree | 0d7ccd0a68548efcfaf134a6d6867a267a66b5d4 /tests | |
| parent | Merge pull request #1073 from python-discord/fix/webhook_remover (diff) | |
Remove superfluous Available help channels.
This adds a little bit of logic to the Help Channel `init_available`
coroutine, which runs when the cog loads. This ensures that if there are
more help channels in available than there should be, we remove the
superfluos ones.
Previously, if the bot started with too many channels, it would maintain
and defend that excessive amount. This is because we never actually
count the number of channels before adding in new available channels
whenever one disappears.
If we ever get too many available channels in the future, this can be
solved by simply reloading this cog.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions