Optional asasHtml is a boolean indicating whether to return the result as HTML.
Optional categorycategoryId is a number representing the id of the category.
Optional idid is a number representing the id of the thread.
Optional id_id_in is an array of numbers representing the ids to include in the search.
Optional mediamediaCategoryId is a number representing the id of the media category.
Optional replyreplyUserId is a number representing the id of the user who replied.
Optional searchsearch is a string representing the search term.
Optional sortsort is an array of strings representing the sort order of the thread.
Optional subscribedsubscribed is a boolean indicating whether the user is subscribed to the thread.
Optional useruserId is a number representing the id of the user.
ThreadVariablesis an interface representing the variables for theThreadQuery. It includes optional parameters for querying thread data.