UserManager class final

Constructors

UserManager({UserService? service, bool whitelistEnabled = SetonixConfig.defaultWhitelistEnabled, String guestPrefix = SetonixConfig.defaultGuestPrefix})

Properties

changes → Stream<void>
no setter
guestPrefix → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
service → UserService?
final
whitelistEnabled → bool
final

Methods

addRole(String reference, String role) → Future<bool>
addUser(Channel channel, [String? fingerprint, String? name]) → Future<SetonixUser?>
changeBan(String reference, {required bool banned, DateTime? until, String? reason}) → Future<bool>
changeName(Channel channel, String newName) → Future<bool>
changeRoles(String reference, Set<String> roles) → Future<bool>
containsUserName(String name) → bool
getBannedUsers() → Future<List<SetonixUser>>
getUser(Channel channel) → SetonixUser?
Retrieves the user associated with the channel.
getUserByName(String name) → SetonixUser?
Retrieves a user by name.
getUserByReference(String reference) → Future<SetonixUser?>
getUserIdByReference(String reference) → Future<Channel?>
getUsers() → Iterable<MapEntry<Channel, SetonixUser>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRole(String reference, String role) → Future<bool>
removeUser(Channel channel) → void
replaceRole(String role, String replacement) → Future<int>
toString() → String
A string representation of this object.
inherited
unban(String fingerprint) → Future<bool>

Operators

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