diff options
author | 2023-04-21 14:15:45 -0400 | |
---|---|---|
committer | 2023-04-21 18:15:45 +0000 | |
commit | 7c8b8e15ae506457da907cc38b675de2b8a89494 (patch) | |
tree | 155fe56c7674cf825493369c54b9ab6a02a6d95a | |
parent | Merge pull request #2542 from python-discord/dont-collect-coverage-on-test (diff) |
Remove !close command from helpers. (#2548)
* Remove !close command from helpers.
Previously, helpers could use the !close command to put inactive help channels back into circulation. This is no longer necessary now that we use threads.
* Change Role constant for `!close`
`[Roles.moderators, Roles.admins]` to `Guild.moderation_roles`
Co-authored-by: ChrisJL <[email protected]>
---------
Co-authored-by: ChrisJL <[email protected]>
-rw-r--r-- | bot/constants.py | 2 | ||||
-rw-r--r-- | bot/exts/help_channels/_cog.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py index 1f9a55614..d2eb78cf6 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -339,7 +339,7 @@ class _HelpChannels(EnvConfig): idle_minutes = 30 deleted_idle_minutes = 5 # Roles which are allowed to use the command which makes channels dormant - cmd_whitelist: list[int] = [Roles.helpers] + cmd_whitelist = Guild.moderation_roles HelpChannels = _HelpChannels() diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 0d41388a7..2d2bc27aa 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -68,7 +68,7 @@ class HelpForum(commands.Cog): """ Make the help post this command was called in dormant. - May only be invoked by the channel's claimant or by staff. + May only be invoked by the channel's claimant or by mods+. """ # Don't use a discord.py check because the check needs to fail silently. if await self.close_check(ctx): |