public async Task CreatePendingGame() { if (!(await CanPayCostOfEntry(Context.User.Id))) { await ReplyAsync(ErrorView.NotEnoughFunds()); } else if (PendingGameService.PendingGames.Any()) { await ReplyAsync(ErrorView.MultipleGames()); } else { PendingGame game = new PendingGame(Context.User); PendingGameService.PendingGames.Add(game); await ReplyAsync(InfoView.LobbyCreated(game.Id)); } }