aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar vivekashok1221 <[email protected]>2025-04-20 11:44:34 +0400
committerGravatar vivekashok1221 <[email protected]>2025-04-20 11:44:34 +0400
commit393f6a3658bf56739ceb46a70bf23bf14f48288a (patch)
treed772bbc887ef21da699dc22a0acb4a7bff6ae2e6
parentMerge pull request #3313 from shenanigansd/patch-1 (diff)
Remove cban alias, Add clban & cpban aliases
-rw-r--r--bot/exts/moderation/infraction/infractions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py
index a09568b4f..efe70d021 100644
--- a/bot/exts/moderation/infraction/infractions.py
+++ b/bot/exts/moderation/infraction/infractions.py
@@ -102,7 +102,7 @@ class Infractions(InfractionScheduler, commands.Cog):
"""
await self.apply_ban(ctx, user, reason, duration_or_expiry=duration_or_expiry)
- @command(aliases=("cban", "purgeban", "pban"))
+ @command(aliases=("clban", "purgeban", "pban"))
@ensure_future_timestamp(timestamp_arg=3)
async def cleanban(
self,
@@ -154,7 +154,7 @@ class Infractions(InfractionScheduler, commands.Cog):
ctx.send = send
await infr_manage_cog.infraction_append(ctx, infraction, None, reason=f"[Clean log]({log_url})")
- @command()
+ @command(aliases=("cpban",))
async def compban(self, ctx: Context, user: UnambiguousMemberOrUser) -> None:
"""Same as cleanban, but specifically with the ban reason and duration used for compromised accounts."""
await self.cleanban(ctx, user, duration=(arrow.utcnow() + COMP_BAN_DURATION).datetime, reason=COMP_BAN_REASON)