public GameUser GetGameUser(ulong userId, ulong guildId) { var user = Database.Load <GameUser>(GameUser.DocumentName(userId, guildId)); if (user == null) { user = new GameUser(userId, guildId); Database.Store(user, GameUser.DocumentName(userId, guildId)); } return(user); }
public void SaveGameUser(GameUser user) { Database.Store(user, GameUser.DocumentName(user.UserId, user.GuildId)); }