public static System.Threading.Tasks.Task <Guild> OpenWriteGuildSettingsAsync( Services.IDataPersistenceContext <Guild> context, ulong guildId) => context.FindOneOrNewAsync(g => g.Id == guildId, () => new Guild() { Id = guildId });
public static System.Threading.Tasks.Task <User> OpenWriteGuildSettingsAsync( Services.IDataPersistenceContext <User> context, ulong userId) => context.FindOneOrNewAsync(u => u.Id == userId, () => new User() { Id = userId });