@@ -11,56 +11,57 @@ object.init = function(wrapper) {
11
11
} ;
12
12
13
13
/* 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).
15
15
//
16
16
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
17
17
object . list = async function ( sort_options ) {
18
18
return await this . wrapper . get ( `/threads` , sort_options ) ;
19
19
} ;
20
20
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).
22
22
//
23
23
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
24
24
object . list_all = async function ( sort_options ) {
25
25
return await this . wrapper . list_until ( `/threads` , ( ) => true , sort_options ) ;
26
26
} ;
27
27
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.
29
30
//
30
31
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
31
32
object . list_until = async function ( should_continue , sort_options ) {
32
33
return await this . wrapper . list_until ( `/threads` , should_continue , sort_options ) ;
33
34
} ;
34
35
35
- // Fetch detailed information about a thread you own.
36
+ // Fetch detailed information about a thread you own or collaborate on .
36
37
//
37
38
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads/
38
39
object . fetch = async function ( thread_id ) {
39
40
return await this . wrapper . get ( `/threads/${ thread_id } ` ) ;
40
41
} ;
41
42
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).
43
44
//
44
45
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
45
46
object . list_replies = async function ( thread_id , sort_options ) {
46
47
return await this . wrapper . get ( `/threads/${ thread_id } /replies` , sort_options ) ;
47
48
} ;
48
49
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).
50
51
//
51
52
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
52
53
object . list_replies_all = async function ( thread_id , sort_options ) {
53
54
return await this . wrapper . list_until ( `/threads/${ thread_id } /replies` , ( ) => true , sort_options ) ;
54
55
} ;
55
56
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.
57
58
//
58
59
// See documentation for response array object fields: https://www.mc-market.org/wiki/ultimate-api-v1-threads-replies/
59
60
object . list_replies_until = async function ( thread_id , should_continue , sort_options ) {
60
61
return await this . wrapper . list_until ( `/threads/${ thread_id } /replies` , should_continue , sort_options ) ;
61
62
} ;
62
63
63
- // Reply to a thread you own.
64
+ // Reply to a thread you own or collaborate on .
64
65
object . reply = async function ( thread_id , message ) {
65
66
return await this . wrapper . post ( `/threads/${ thread_id } /replies` , { message : message } ) ;
66
67
} ;
0 commit comments