receiver.speaking.on("start", async userId => {
const user = await client.users.fetch(userId).catch(e => console.log(e));
if (user.bot) return;
const opusStream = voice_Connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 100
}
});
});
receiver.speaking.on("start", async userId => {
const user = await client.users.fetch(userId).catch(e => console.log(e));
if (user.bot) return;
const opusStream = voice_Connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 100
}
});
});