knifeofdunwall
knifeofdunwall
DIAdiscord.js - Imagine an app
Created by knifeofdunwall on 8/26/2023 in #djs-questions
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);
});
}
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
2 replies
DIAdiscord.js - Imagine an app
Created by knifeofdunwall on 8/8/2023 in #djs-questions
Authenticate a discord-rpc app only once
i have managed to build a working discord-rpc app but every time i start it the popup comes up asking for permission, how can i save the permission so i only need to apply it once? i have almost no experience but cannot really find something googleing it
3 replies