client.getChannel() only returning a response twice

i am using the discord-rpc node module, i have this function that is executed 5 times but the "then" part of the client.getChannel only gets executed two times

 function addVC(ws, channel){
    console.log(Object.values(channel)[0])
    client.getChannel(Object.values(channel)[0]).then((answer) => {
        console.log(answer.name);
    });
} 




the console output is this


1028614445120888943
1028614495041490954
1071293614732345415
1028614471121387570
921994931407568966
General 1
General 2
Was this page helpful?