⠀ #9675
⠀
#9675
-
Beta Was this translation helpful? Give feedback.
Answered by
Rapptz
Dec 10, 2023
Replies: 1 comment
-
The simplest way to do this is by overriding class MyBot(commands.Bot):
async def on_error(self, event, *args, **kwargs):
cog = self.get_cog('MyCog')
if cog is not None:
await cog.custom_on_error(event, *args, **kwargs) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FreakMediaLP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The simplest way to do this is by overriding
Client.on_error
and calling a method on your cog, e.g.