Query in a Hierarchical Custom Post Type for Children vs Siblings

get_pages() works with other post types just fine, you only need to pass post_type you want as part of argument (also I recommend to stick with array notation).

$children = get_pages( array( 'child_of' => $post->ID, 'post_type' => 'your_post_type', ) );

error code: 523