Skip to main content

RolesChange

A class in TavernLib, TavernLib.ModdingApi.

What Roles.RolesChanged hands its handlers: one user whose roles in users.json changed.

Constructors​

MemberWhat it is
RolesChange(string username, IReadOnlyList<string> oldRoles, IReadOnlyList<string> newRoles)Sets the username and the roles before and after the change.

Properties​

MemberWhat it is
IReadOnlyList<string> NewRoles { get; }Their roles now. Empty if they have none left or were removed from the file.
IReadOnlyList<string> OldRoles { get; }Their roles before the change. Empty if they had none.
string Username { get; }The name as it's written in users.json.

Used in​

Members of other types that take, return or hold a RolesChange: