This error is telling you that your use of the utility function get_discourse_comments needs updating. Here’s an example of how you could use it.
global $post;
use WPDiscourse\Utilities\Utilities as DiscourseUtilities;
$discourse_comments = DiscourseUtilities::get_discourse_comments($post->ID, true, true, 'display-comments');
echo $discourse_comments;