Skip to content

Finding Users

nutmeg edited this page Feb 22, 2023 · 3 revisions

Run Down

To do most things with voice you might have to use this to find users in a voice channel

Finding Users

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}`);
});
Clone this wiki locally