public static void ReloadMembers() { if (MemberList.Count > 0) { MemberList.RemoveAll(v => true); } JObject config = JObject.Parse(File.ReadAllText("permissions.json")); foreach (JProperty userId in ((JObject)config.SelectToken("Members")).Properties()) { Member newMember = new Member(userId.Name); foreach (JToken role in config.SelectToken($"Members.{userId.Name}")) { newMember.Roles.Add(role.ToString()); } MemberList.Add(newMember); } }