作为对您评论的回复,以下代码将在您的机器人每次加入语音频道时拒绝它。client.on("voiceStateUpdate", (oldVoiceState, newVoiceState) => { if (!newVoiceState.channel) {return false}; // The bot disconnected. if (newVoiceState.id == client.user.id) { // Checking if it is the bot. newVoiceState.setSelfDeaf(true); // Setting self defean to true. };});让您的机器人加入语音频道:// Getting the channel.const channel = client.channels.cache.get("722944525986955386");// Joining the channel.channel.join();