aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/christmas/advent_of_code/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/christmas/advent_of_code/_cog.py b/bot/exts/christmas/advent_of_code/_cog.py
index 30030e70..0ad718b9 100644
--- a/bot/exts/christmas/advent_of_code/_cog.py
+++ b/bot/exts/christmas/advent_of_code/_cog.py
@@ -375,6 +375,6 @@ class AdventOfCode(commands.Cog):
"""Custom error handler if an advent of code command was posted in the wrong channel."""
if isinstance(error, InChannelCheckFailure):
await ctx.send(f":x: Please use <#{Channels.advent_of_code_commands}> for aoc commands instead, please.")
- ctx.command.on_error = True
+ error.handled = True
else:
raise error