aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-10-18 18:58:43 -0700
committerGravatar MarkKoz <[email protected]>2020-11-20 15:57:09 -0800
commitb9593039a1663c983b84970dc8832900ce9e4cbb (patch)
treed91651c6b86c91253caa97a790a5270c8c0c1884
parentHelp channels: move cooldown/role functions to cooldown module (diff)
Help channels: remove obsolete function
-rw-r--r--bot/exts/help_channels/_cog.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index 169238937..5c4a0d972 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -280,11 +280,6 @@ class HelpChannels(commands.Cog):
self.bot.stats.gauge("help.total.available", total_available)
self.bot.stats.gauge("help.total.dormant", total_dormant)
- @staticmethod
- def is_claimant(member: discord.Member) -> bool:
- """Return True if `member` has the 'Help Cooldown' role."""
- return any(constants.Roles.help_cooldown == role.id for role in member.roles)
-
async def move_idle_channel(self, channel: discord.TextChannel, has_task: bool = True) -> None:
"""
Make the `channel` dormant if idle or schedule the move if still active.