Cog-Creators / Cog-Creators/Red-DiscordBot

Move our error handling to the cog base

Open
#3,599 0 comments 0 reactions 0 assignees View on GitHub
Category: Core - API - Commands Package Category: Core - Other Internals Status: Accepted Status: Frozen Type: Enhancement
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Currently we handle errors in `on_command_error` event listener, moving this to cog base (or more likely to `CogCommandMixin` as not all commands are necessarily attached to a cog) would make it easier to override the error handling safely while retaining the behavior for people not overriding it.

Original issue: #3133

Contributor guide

Open the contributing guide

Research direction

Start by tracing the on_command_error event listener and reviewing CogCommandMixin, then compare the intended change with original issue #3133. Done means error handling is moved to the cog base or mixin, remains available for commands without cogs, preserves existing behavior, and can be safely overridden.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.