contestMode method
Enables contest mode for the Comments in this Submission.
If state
is true (default), contest mode is enabled for this
Submission.
Contest mode have the following effects:
* The comment thread will default to being sorted randomly.
* Replies to top-level comments will be hidden behind
"show replies
" buttons.
* Scores will be hidden from non-moderators.
* Scores accessed through the API (mobile apps, bots) will be
obscured to "1" for non-moderators.
Implementation
Future<void> contestMode({bool state = true}) async => _content.reddit.post(
apiPath['contest_mode'],
{
'id': _content.fullname,
'state': state.toString(),
},
discardResponse: true);