ModeratorRelationship class
Provides methods to interact with a Subreddit's moderators.
- Inheritance
-
- Object
- SubredditRelationship
- ModeratorRelationship
Constructors
- ModeratorRelationship(SubredditRef subreddit, String relationship)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- relationship → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
dynamic redditor, {List< ModeratorPermission> permissions = const <ModeratorPermission>[], Map<String, String> ? params}) → Future<void> -
Add or invite
redditor
to be a moderator of the subreddit.override -
call(
{dynamic redditor, Map< String, String> ? params}) → Stream<Redditor> -
Returns a Stream of
Redditor
s who are moderators.override -
invite(
dynamic redditor, {List< ModeratorPermission> permissions = const <ModeratorPermission>[]}) → Future<void> -
Invite
redditor
to be a moderator of this subreddit. ///redditor
is either a RedditorRef or username. Ifpermissions
is not provided, the+all
permission will be used. Otherwise,permissions
should specify the subset of permissions to grant. If the empty list is provided, no permissions are granted (default). -
leave(
) → Future< void> - Remove the currently authenticated user as moderator.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
dynamic redditor, {Map< String, String> ? params}) → Future<void> -
Remove a Redditor from this relationship.
inherited
-
removeInvite(
dynamic redditor) → Future< void> -
Remove the moderator invite for
redditor
. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
dynamic redditor, {List< ModeratorPermission> permissions = const <ModeratorPermission>[]}) → Future<void> -
Updated the moderator permissions for
redditor
. -
updateInvite(
dynamic redditor, {List< ModeratorPermission> permissions = const <ModeratorPermission>[]}) → Future<void> -
Update the moderator invite for
redditor
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited