diff options
author | 2025-04-20 11:52:03 +0100 | |
---|---|---|
committer | 2025-04-20 11:52:03 +0100 | |
commit | c56264419fdce3b9a8142afb059a27ba7fba44cf (patch) | |
tree | d772bbc887ef21da699dc22a0acb4a7bff6ae2e6 | |
parent | Merge pull request #3313 from shenanigansd/patch-1 (diff) | |
parent | Remove cban alias, Add clban & cpban aliases (diff) |
Merge pull request #3320 from python-discord/remove-cban-alias
Remove cban alias, Add clban & cpban aliases
-rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 4 |
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) |