Constructors
-
UserManager({UserService? service, bool whitelistEnabled = SetonixConfig.defaultWhitelistEnabled, String guestPrefix = SetonixConfig.defaultGuestPrefix})
-
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>
-