@Lucas_Alves … must be so frustrating to just get no instructions, but also to completely miss any doc about it. Like, at least, for me it is frustrating.
Now, since I found your post here which was exactly what I was looking for, let me share how I detect if it is a “comment” (strictly speaking a POST that is a FOLLOW UP of any kind to the TOPIC)
- the
post_typeis1 - the
post_numberis greater than1 - the
versionis1
If you want to specifically get only replies to a specific other coment you could use reply_to_post_number (if not empty, that is the post number of the post being replied to)
I hope this helps, and I wish, Discourse would call this object property comment, not post, just like they call like for Like actions!