From 23b48c4c8c1c904c4090486bdc19ec7fb9460bb1 Mon Sep 17 00:00:00 2001 From: neevets Date: Sun, 25 Jan 2026 16:10:13 +0100 Subject: [PATCH] Respond with helpful message when deprecated cban alias is used --- bot/exts/backend/error_handler.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py index 352be313dc..4afa72aa4f 100644 --- a/bot/exts/backend/error_handler.py +++ b/bot/exts/backend/error_handler.py @@ -103,6 +103,12 @@ async def on_command_error(self, ctx: Context, e: errors.CommandError) -> None: # All errors from attempting to execute these commands should be handled by the error handler. # We wrap non CommandErrors in CommandInvokeError to mirror the behaviour of normal commands. try: + if ctx.invoked_with == "cban": + await ctx.send( + "The `cban` alias was removed because of ambiguity (see #3458). " + "Did you mean `cleanban` or `compban`?" + ) + return if await self.try_silence(ctx): return if await self.try_run_fixed_codeblock(ctx):