public PatreonConfig GetConfig() { if (lastConfig != null) { return(lastConfig); } return(Database.Load <PatreonConfig>(PatreonConfig.DocumentName()) ?? new PatreonConfig()); }
public void SaveConfig(PatreonConfig config) { lastConfig = config; Database.Store(config, PatreonConfig.DocumentName()); }