diff options
| author | 2022-02-20 11:29:20 +0000 | |
|---|---|---|
| committer | 2022-02-20 11:29:20 +0000 | |
| commit | e232b7c4a870da800cbb40f2d5fbd0af8084be1f (patch) | |
| tree | 75262960566ab049653ce70176b77b73c0e2fee2 /bot/utils | |
| parent | Merge remote-tracking branch 'origin/main' into main (diff) | |
| parent | Allow `.src` in dev-contrib and community-meta (#1033) (diff) | |
Merge remote-tracking branch 'origin/main' into main
Diffstat (limited to 'bot/utils')
| -rw-r--r-- | bot/utils/checks.py | 2 | ||||
| -rw-r--r-- | bot/utils/decorators.py | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/bot/utils/checks.py b/bot/utils/checks.py index 8c426ed7..5433f436 100644 --- a/bot/utils/checks.py +++ b/bot/utils/checks.py @@ -33,7 +33,7 @@ def in_whitelist_check(      channels: Container[int] = (),      categories: Container[int] = (),      roles: Container[int] = (), -    redirect: Optional[int] = constants.Channels.community_bot_commands, +    redirect: Optional[int] = constants.Channels.sir_lancebot_playground,      fail_silently: bool = False,  ) -> bool:      """ diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py index 7a3b14ad..8954e016 100644 --- a/bot/utils/decorators.py +++ b/bot/utils/decorators.py @@ -257,10 +257,10 @@ def whitelist_check(**default_kwargs: Container[int]) -> Callable[[Context], boo          channels = set(kwargs.get("channels") or {})          categories = kwargs.get("categories") -        # Only output override channels + community_bot_commands +        # Only output override channels + sir_lancebot_playground          if channels:              default_whitelist_channels = set(WHITELISTED_CHANNELS) -            default_whitelist_channels.discard(Channels.community_bot_commands) +            default_whitelist_channels.discard(Channels.sir_lancebot_playground)              channels.difference_update(default_whitelist_channels)          # Add all whitelisted category channels, but skip if we're in DMs | 
