client.on('voiceStateUpdate', (oldMember, newMember) => {
let newUserChannel = newMember.channel,
oldUserChannel = oldMember.channel;
if (!oldUserChannel && newUserChannel) {
if (newMember.channel.members.size === 1) {
// пользователь первым зашел в голосовой канал
}
}
});