internal void SetRank(SteamID id, EClanPermission rank) { var member = _members.FirstOrDefault(m => m.Persona.Id == id); if (member == null) _members.Add(new Member(Bot.GetPersona(id), rank)); else member.Rank = rank; }
private static string GetRankString(EClanPermission permission) { switch (permission) { case EClanPermission.Owner: return "Administrator"; case EClanPermission.Officer: case EClanPermission.Moderator: return "Moderator"; case EClanPermission.Member: return "Member"; default: return "Guest"; } }
private static string GetRankString(EClanPermission permission) { switch (permission) { case EClanPermission.Owner: return("Administrator"); case EClanPermission.Officer: case EClanPermission.Moderator: return("Moderator"); case EClanPermission.Member: return("Member"); default: return("Guest"); } }
public Member(SteamPersona persona, EClanPermission rank) { Persona = persona; Rank = rank; }