how to disconnect player from voice discord js code example
Example 1: recieve voice channel audio discord.js
const audio = connectionA.receiver.createStream('User ID');
connectionB.play(audio, { type: 'opus' });
Example 2: get voice channel of sender discord.js
messsage.member.voiceChannel