Arcana / node-dota2-bot

Wrapper around the node-dota2 library which handles all log-in shenanigans
MIT License
9 stars 7 forks source link

InviteLobby is not function #11

Open oleghalin opened 7 years ago

oleghalin commented 7 years ago

Im using InviteToLobby:

Dota2.Dota2Client.prototype.invitePlayers = function(inviteList)
{
  inviteList.forEach(function(item) {
      this.inviteToLobby(item);
  });
}

And after:

var inviteList = data.team1.concat(data.team2);

    bots[game_id].schedule(()=>{bots[game_id].Dota2.invitePlayers(inviteList);});

But node says that InviteToLobby is not a function. Can u help me?