Skip to content

Commit

Permalink
feat: add MyUserControls::getModeratedSubreddits()
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed May 2, 2022
1 parent 48f41c0 commit 291c74f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/reddit/user/my-user/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,16 @@ export class MyUserControls extends BaseUserControls {
getContributorSubreddits(): Listing<Subreddit> {
return this.getMySubreddits("contributor");
}

/**
* Get the subreddits the authenticated account is a moderator in.
*
* @note Due to the way Reddit implements Listings, this will only contain the
* first 1000 subreddits.
*
* @returns A Listing of Subreddits.
*/
getModeratedSubreddits(): Listing<Subreddit> {
return this.getMySubreddits("moderator");
}
}

0 comments on commit 291c74f

Please sign in to comment.