Skip to content

Commit c562644

Browse files
authored
Merge pull request #3320 from python-discord/remove-cban-alias
Remove cban alias, Add clban & cpban aliases
2 parents fb78189 + 393f6a3 commit c562644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/exts/moderation/infraction/infractions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def ban(
102102
"""
103103
await self.apply_ban(ctx, user, reason, duration_or_expiry=duration_or_expiry)
104104

105-
@command(aliases=("cban", "purgeban", "pban"))
105+
@command(aliases=("clban", "purgeban", "pban"))
106106
@ensure_future_timestamp(timestamp_arg=3)
107107
async def cleanban(
108108
self,
@@ -154,7 +154,7 @@ async def send(*args, **kwargs) -> None:
154154
ctx.send = send
155155
await infr_manage_cog.infraction_append(ctx, infraction, None, reason=f"[Clean log]({log_url})")
156156

157-
@command()
157+
@command(aliases=("cpban",))
158158
async def compban(self, ctx: Context, user: UnambiguousMemberOrUser) -> None:
159159
"""Same as cleanban, but specifically with the ban reason and duration used for compromised accounts."""
160160
await self.cleanban(ctx, user, duration=(arrow.utcnow() + COMP_BAN_DURATION).datetime, reason=COMP_BAN_REASON)

0 commit comments

Comments
 (0)