// saves the user to its directory public void SaveUser(User user) { Users.Values.AddOrUpdate(user.Id, user, (key, value) => user); JsonHandler.SaveJsonEntity(user); }
// saves the guild to its directory public void SaveGuild(BaseGuild guild) { Guilds.Values.AddOrUpdate(guild.Id, guild, (key, value) => guild); JsonHandler.SaveJsonEntity(guild); }