SubmissionModeration class

Provides a set of moderation functions for a Submisson.

Mixed in types

Properties

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

Methods

approve() Future<void>
Approve a Comment or Submission.
inherited
contestMode({bool state = true}) Future<void>
Enables contest mode for the Comments in this Submission.
distinguish({required DistinctionType how, bool sticky = false}) Future<void>
Distinguish a Comment or Submission.
inherited
flair({String text = '', String cssClass = ''}) Future<void>
Sets the flair for the Submission.
ignoreReports() Future<void>
Ignore Future
inherited
lock() Future<void>
Locks the Submission to new Comments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nsfw() Future<void>
Marks the Submission as not safe for work.
remove({bool spam = false}) Future<void>
Remove a Comment or Submission.
inherited
sfw() Future<void>
Marks the Submission as safe for work.
spoiler() Future<void>
Indicate that the submission contains spoilers.
sticky({bool state = true, bool bottom = true}) Future<void>
Set the Submission's sticky state in its Subreddit.
suggestedSort({CommentSortType sort = CommentSortType.blank}) Future<void>
Sets the suggested Comment sorting for the Submission.
toString() String
A string representation of this object.
inherited
undistinguish() Future<void>
Remove distinguishing on a Comment or Submission.
inherited
unignoreReports() Future<void>
Resume receiving Future
inherited
unlock() Future<void>
Unlocks the Submission to allow for new Comments.
unspoiler() Future<void>
Indicate that the submission contains spoilers.

Operators

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