def define_error(self, ctx, err): if isinstance(err, commands.DisabledCommand) or isinstance(err, commands.CheckFailure): return await ctx.send('An error has occurred.')