@@ -11,56 +11,57 @@ object.init = function(wrapper) {
1111} ;
1212
1313/* functions */
14- // List a page of threads you own (with optional sort options).
14+ // List a page of threads you own or collaborate on (with optional sort options).
1515//
1616// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
1717object . list = async function ( sort_options ) {
1818 return await this . wrapper . get ( `/threads` , sort_options ) ;
1919} ;
2020
21- // List all pages of threads you own (with optional sort options).
21+ // List all pages of threads you own or collaborate on (with optional sort options).
2222//
2323// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
2424object . list_all = async function ( sort_options ) {
2525 return await this . wrapper . list_until ( `/threads` , ( ) => true , sort_options ) ;
2626} ;
2727
28- // List multiple pages of threads you own (with optional sort options) until a condition is no longer met.
28+ // List multiple pages of threads you own or collaborate on (with optional sort options) until a condition is no longer
29+ // met.
2930//
3031// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
3132object . list_until = async function ( should_continue , sort_options ) {
3233 return await this . wrapper . list_until ( `/threads` , should_continue , sort_options ) ;
3334} ;
3435
35- // Fetch detailed information about a thread you own.
36+ // Fetch detailed information about a thread you own or collaborate on .
3637//
3738// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
3839object . fetch = async function ( thread_id ) {
3940 return await this . wrapper . get ( `/threads/${ thread_id } ` ) ;
4041} ;
4142
42- // List a page of replies for a thread you own (with optional sort options).
43+ // List a page of replies for a thread you own or collaborate on (with optional sort options).
4344//
4445// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
4546object . list_replies = async function ( thread_id , sort_options ) {
4647 return await this . wrapper . get ( `/threads/${ thread_id } /replies` , sort_options ) ;
4748} ;
4849
49- // List all pages of replies for a thread you own (with optional sort options).
50+ // List all pages of replies for a thread you own or collaborate on (with optional sort options).
5051//
5152// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
5253object . list_replies_all = async function ( thread_id , sort_options ) {
5354 return await this . wrapper . list_until ( `/threads/${ thread_id } /replies` , ( ) => true , sort_options ) ;
5455} ;
5556
56- // List multiple pages of replies for a thread you own (with optional sort options) until a condition is no longer met.
57+ // List multiple pages of replies for a thread you own or collaborate on (with optional sort options) until a condition is no longer met.
5758//
5859// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
5960object . list_replies_until = async function ( thread_id , should_continue , sort_options ) {
6061 return await this . wrapper . list_until ( `/threads/${ thread_id } /replies` , should_continue , sort_options ) ;
6162} ;
6263
63- // Reply to a thread you own.
64+ // Reply to a thread you own or collaborate on .
6465object . reply = async function ( thread_id , message ) {
6566 return await this . wrapper . post ( `/threads/${ thread_id } /replies` , { message : message } ) ;
6667} ;
0 commit comments