Exemplo n.º 1
0
        public void Save()
        {
            MemberList = MemberList.Distinct().ToList();
            AdminList  = AdminList.Distinct().ToList();
            var di = Directory.CreateDirectory(Path.Combine(Utilities.RootPath, "Data", "Chats"));

            File.WriteAllText(Path.Combine(di.FullName, ChatID + ".json"), JsonConvert.SerializeObject(this));
        }