Jump to content


Photo

Sending a message to Trade Offer partner

node.js node-steam-tradeoffer-manager

  • Please log in to reply
4 replies to this topic

#1 MikesTooLz

MikesTooLz

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 25 November 2016 - 02:48 AM

Maybe I'm doing something wrong but I am trying to use friends.sendMessage(offer.partner, "message"); to send a message to the person who sent a trade offer and let them know it was accepted or why it was declined.

 

If I use friends.sendMessage("mysteamID", "message"); and replace mysteamID with my actual steamID the message gets sent to me correctly. However with offer.partner they never receive a chat message.



#2 MikesTooLz

MikesTooLz

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 25 November 2016 - 05:02 PM

OK, I got it figured out by using offer.partner.getSteamID64()



#3 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,111 posts

Posted 25 November 2016 - 06:26 PM

I assume friends is not node-steam-user?



#4 MikesTooLz

MikesTooLz

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 26 November 2016 - 10:32 AM

no its steam, I'm using both .


Edited by MikesTooLz, 26 November 2016 - 10:33 AM.


#5 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,111 posts

Posted 26 November 2016 - 02:19 PM

Right. If you were using node-steam-user then just using offer.partner would work, but since you're using node-steam you need to convert it to a string.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users