How to put Discourse comments somewhere other than the default comment location?

I’ve added a static helper function to the plugin that can be used to display comments without loading the Discourse comments template. The function is here: get_discourse_comments. It requires you to supply the post_id of the WordPress post that you want to display the comments for. Here’s a simple example of its use:

<?php
use WPDiscourse\Utilities\Utilities as DiscourseUtilities;
$discourse_comments = DiscourseUtilities::get_discourse_comments( 859 );
echo $discourse_comments;

It displays the comments in the same way as they are displayed if you select the
Enable Discourse Comments/Display Comments option (found on the plugin’s Comment Settings tab.) When this function is used, the value of that setting is ignored, but all other settings on that page are respected.