aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar janine9vn <[email protected]>2020-12-02 11:21:27 -0500
committerGravatar Janine <[email protected]>2020-12-11 22:08:18 -0500
commit15a511d5895c5c1f9ec68b968fa4e0ff55a416a3 (patch)
treeef227e2a2f0a76a605a1311410f088b92f5d8db6 /bot
parentAdd cog-level error handler for Incorrect Channel (diff)
Change custom error handler to match new style
I'm a bit ahead of the game and changing the error handler to match the new style that Iceman will PR shortly.
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