diff options
author | 2020-04-20 13:47:12 -0700 | |
---|---|---|
committer | 2020-04-20 13:47:12 -0700 | |
commit | 7b0cba07953f7a74a0a0b57dfb5f38299adcdccd (patch) | |
tree | 4899f016aa804743e279b9d33d3cc89200bee2cc | |
parent | HelpChannels: check if the help cooldown role exists (diff) |
HelpChannels: rename dormant command to close
People are more familiar with the "close" alias than its actual name,
"dormant". "close" also feels more natural.
-rw-r--r-- | bot/cogs/help_channels.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index 5a1495a4d..75f907602 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -215,8 +215,8 @@ class HelpChannels(Scheduler, commands.Cog): return role_check - @commands.command(name="dormant", aliases=["close"], enabled=False) - async def dormant_command(self, ctx: commands.Context) -> None: + @commands.command(name="close", aliases=["dormant"], enabled=False) + async def close_command(self, ctx: commands.Context) -> None: """ Make the current in-use help channel dormant. @@ -224,7 +224,7 @@ class HelpChannels(Scheduler, commands.Cog): delete the message that invoked this, and reset the send permissions cooldown for the user who started the session. """ - log.trace("dormant command invoked; checking if the channel is in-use.") + log.trace("close command invoked; checking if the channel is in-use.") if ctx.channel.category == self.in_use_category: if await self.dormant_check(ctx): with suppress(KeyError): @@ -400,7 +400,7 @@ class HelpChannels(Scheduler, commands.Cog): # The ready event wasn't used because channels could change categories between the time # the command is invoked and the cog is ready (e.g. if move_idle_channel wasn't called yet). # This may confuse users. So would potentially long delays for the cog to become ready. - self.dormant_command.enabled = True + self.close_command.enabled = True await self.init_available() |