Finding Users - shysolocup/willclient GitHub Wiki

To do most things with voice you might have to use this to find users in a voice channel
The call for finding voice users is PSClient.voice.find() and you use it like this:
PSClient.voice.find(user, (channel) => {
// do stuff
});
Finding users is essential for most voice related functions like join, leave, mute, unmute, deafen, undeafen, lock, unlock, lockUser, and unlockUser
PSClient.voice.find(user, (channel) => {
PSClient.voice.join(channel);
console.log(`Joined ${channel.name}`);
});