I use CSharpTradeOffers ( GitHub ) library
It has functions
SendTradeOfferWithLink (CSharpTradeOffers / Trading / EconServiceHandler.cs) and SendOfferResponse (CSharpTradeOffers / Trading / Data Classes / SendOfferResponse.cs)
I have the following code:
TradeOffer offer = new TradeOffer(); offer.Me.Assets.Add(csgoInventory.Items.First().Value.Items.First().ToCEconAsset(730)); var response = offerHandler.SendTradeOfferWithLink(steamid, token, msg, "1", offer, _account.AuthContainer); Console.WriteLine(response.Error); SendTradeOfferWithLink returns a SendOfferResponse with Error and JsonProperty("strError")
I need to output to the console if, when I try to send an exchange, some kind of error occurs (for example, such ). But for some reason, response.Error returns null, and if the exchange did not go because of a similar error, nothing is output to the console.
Explain, please, how can I display this Error?