如何检测用户从一个语音通道更改为另一个语音通道?

How can I detect that a user changes form one to another voice channel?

例如,我想检测某人何时从 "Talk I" 变为 "Talk II".. 但它应该可以在不断开服务器连接的情况下工作,然后加入 "Talk II" !有办法吗??

每次用户更新他们的语音状态时,客户端都会发出一个 voiceStateUpdate 事件。
要检测用户是否更改了他们的语音频道,您可以这样做:

client.on('voiceStateUpdate', (oldMember, newMember) => {
  let oldChannel = oldMember.voiceChannel, // the previous channel, if there was one
    newChannel = newMember.voiceChannel; // the current channel, if there is one

  if (oldChannel != newChannel) { // if the channel has changed
    // do your stuff...
  }
});