Jump to content
McKay Development

community.acceptConfirmationForObject is not a function


Recommended Posts

const offer = manager.createOffer(''+user.link+'');
offer.addMyItem({
	"id": item.assetid, 
	"assetid": item.assetid, 
	"appid": 730, 
	"contextid": 2, 
	"amount": 1
});
offer.setMessage('Delivery "'+item.item+'" from sitename for '+user.name+' ['+helpers.getDateTime()+']');
offer.send(function(err, status) {
	if(err){
		util.log(`[BOT] Sent error: ${err}`);
	}else{
		util.log(`[BOT] Sending: ${item.item} for ${user.name}. TradeID# ${offer.id}`);
        community.acceptConfirmationForObject(identity, offer.id, function(err) {
			if(err){
				util.log(`[BOT] Error: ${err}`);
			}else{
				util.log(`[BOT] Tradeoffer #${offer.id} sent!`);
			}
		});
	}
});

After offer send, i've got error → TypeError: community.acceptConfirmationForObject is not a function

What is the problem?

startConfirmationChecker work successfully

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...