more debugging

This commit is contained in:
unknown 2023-03-16 00:08:02 +01:00
parent dba7c861d5
commit c5d36a2905

View File

@ -164,7 +164,7 @@ class ReginaldCog(commands.Cog):
return None return None
@reginald.error @reginald.error
async def reginald_error(ctx, error): async def reginald_error(self, ctx, error):
if isinstance(error, commands.BadArgument): if isinstance(error, commands.BadArgument):
await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.")
elif isinstance(error, commands.CheckFailure): elif isinstance(error, commands.CheckFailure):
@ -173,7 +173,7 @@ class ReginaldCog(commands.Cog):
await ctx.send(f"An unexpected error occurred: {error}") await ctx.send(f"An unexpected error occurred: {error}")
@reginaldimagine.error @reginaldimagine.error
async def reginaldimagine_error(ctx, error): async def reginaldimagine_error(self, ctx, error):
if isinstance(error, commands.BadArgument): if isinstance(error, commands.BadArgument):
await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.")
elif isinstance(error, commands.CheckFailure): elif isinstance(error, commands.CheckFailure):