JRAW
JRAW copied to clipboard
Basic moderation features
New classes:
-
ModerationReference
-
ModLogPaginator
,ModLogPaginator.Builder
-
ModQueuePaginator
,ModQueuePaginator.Builder
New endpoints:
- [x]
GET [/r/{subreddit}]/about/log
- [ ]
GET [/r/{subreddit}]/about/{location}
- [ ]
POST [/r/{subreddit}]/api/accept_moderator_invite
- [ ]
POST /api/approve
- [ ]
POST /api/distinguish
- [ ]
POST /api/ignore_reports
- [ ]
POST /api/leavecontributor
- [ ]
POST /api/leavemoderator
- [ ]
POST /api/mute_message_author
- [ ]
POST /api/remove
- [ ]
POST /api/unignore_reports
- [ ]
POST /api/unmute_message_author
// SubredditReference.kt
fun moderate(): ModerationReference
// ModerationReference.kt
fun log(actionType: String? = null, moderator: String? = null): ModLogPaginator
fun queue(location: String): ModQueuePaginator
fun acceptModeratorInvite()
fun approve(fullName: String)
fun remove(fullName: String, spam: Boolean? = null)
fun ignoreReports(fullName: String)
fun unignoreReports(fullName: String)
fun leaveContributor(subredditFullName: String)
fun leaveModerator(subredditFullName: String)
fun muteAuthorOf(messageFullName: String)
fun unmuteAuthorOf(messageFullName: String)