Hello. I've seen many topics about offer.getUserDetails, but i can't understand how it works. All the time i try to send offer to a user that has no mobile steam guard or wrong token for example, im getting error, thrown by getUserDetails, but i can't get the type of this error. For example:
Error: There was an error sending your trade offer. Please try again later. Username is not available to trade. More information will be shown to Username if they invite you to trade.
Or (wrong token): Error: Trade Offers can only be sent to friends. Username is not on your Steam friends list.