aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-31 19:52:01 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-31 19:52:01 +0200
commitda484b1b22a0d346a1dbc1abf2ffe1027a7e5031 (patch)
tree0d7ccd0a68548efcfaf134a6d6867a267a66b5d4 /tests
parentMerge 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