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