diff options
| author | 2020-04-28 01:29:09 +0200 | |
|---|---|---|
| committer | 2020-04-28 01:29:09 +0200 | |
| commit | 634dbc93645aebf87d102b1321001f2021def979 (patch) | |
| tree | 26dc3413dab6dfc302ef7f341a513e4c8cc3dd1f /tests/test_helpers.py | |
| parent | Insert help channels at the bottom of the category (diff) | |
Add option to ingore channels in help categories
As we want to add an "informational" channel to the `Python Help: Available` category, we need to make sure that the Help Channel System ignores that channel.
To do that, I've added an `is_excluded_channel` staticmethod that returns `True` if a channel is not a TextChannel or if it's in a special EXCLUDED_CHANNELS constant. This method is then used in the method that yields help channels from a category and in the `on_message` event listener that determines if a channel should be moved from `Available` to `Occupied`.
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions