path: '/api/mod/conversations/fsox5/archive?raw_json=1',
which is correct. I'll see whats up with reddit's API
```const sendModMail = async (threadID, message) => {
const thread = r.getNewModmailConversation(threadID)
await thread.reply(message);
await archiveThread(threadID)
}```
export default class Listing<T> extends Array<T> {
constructor(options: any, _r: Snoowrap);
isFinished: boolean;
is_finished: boolean;
fetchMore(options: FetchMoreOptions): Listing<T>;
fetchAll(options?: FetchMoreOptions): Listing<T>;
/* @deprecated */ fetchUntil(options?: FetchMoreOptions): Listing<T>;
toJSON(): T[];
}
export interface ListingOptions {
limit?: number;
after?: string;
before?: string;
show?: string;
count?: number;
}
export interface SortedListingOptions extends ListingOptions {
time?: 'all' | 'hour' | 'day' | 'week' | 'month' | 'year';
}
interface FetchMoreOptions {
amount: number;
skipReplies?: boolean;
skip_replies?: boolean;
append?: boolean;
}
is there a difference between skipReplies camelCase and skip_replies snake_case?
Also, for each fetch I want to perform, would I have to extend the initial getNew object each time? so allowing the user to fetch 10 more posts a total of 5 times would be five extensions?
const snooSubs = await r
.getNew(display_name ?? 'snowboarding', {
limit: 100,
count: 10,
show: 'all',
after: ''
})
.then(fetch => {
fetch
.fetchMore({
amount: 10,
append: true,
skipReplies: true,
skip_replies: true
})
.fetchMore({
skipReplies: true,
append: true,
skip_replies: true,
amount: 10
})
.fetchMore({
skipReplies: true,
skip_replies: true,
append: true,
amount: 10
});
return fetch;
});
const ListingWithFetchSerialized = new Serializer<ListingWithFetch>().serialize(
JSON.parse(JSON.stringify(snooSubs))
);