SubredditModeration class

Provides a set of moderation functions to a Subreddit. You must be a mod of the subreddit to acess these.

Constructors

SubredditModeration.new(SubredditRef _subreddit)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptInvite() Future<void>
Accept an invitation to moderate the community.
edited({SubredditModerationContentTypeFilter? only, int? limit}) Stream<UserContent>
Returns a Stream<UserContent> of edited Comments and Submissions.
inbox({int? limit}) Stream<Message>
Returns a Stream<Message> of moderator messages.
log({dynamic mod, ModeratorActionType? type, int? limit}) Stream<ModeratorAction>
Returns a Stream<ModeratorAction> of moderator log entries.
modQueue({SubredditModerationContentTypeFilter? only, int? limit}) Stream<UserContent>
Returns a Stream<UserContent> of Comments and Submissions in the mod queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reports({SubredditModerationContentTypeFilter? only, int? limit}) Stream<UserContent>
Returns a Stream<UserContent> of Comments and Submissions which have been reported.
settings() Future<SubredditSettings>
Returns the current settings for the Subreddit.
spam({SubredditModerationContentTypeFilter? only, int? limit}) Stream<UserContent>
Returns a Stream<UserContent> of Comments and Submissions which have been marked as spam.
toString() String
A string representation of this object.
inherited
unmoderated({int? limit}) Stream<UserContent>
Returns a Stream<UserContent> of unmoderated Comments and Submissions.
unread({int? limit}) Stream<Message>
Returns a Stream<Message> of unread moderator messages.
update(SubredditSettings updated) Future<void>
Update the Subreddits settings.

Operators

operator ==(Object other) bool
The equality operator.
inherited