mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 21:33:17 +00:00
Temporary fix voiceStateUpdate
This commit is contained in:
parent
666a52b570
commit
46b3119f79
@ -5,6 +5,7 @@ module.exports = {
|
|||||||
let change = false;
|
let change = false;
|
||||||
const radio = client.radio.get(newState.guild.id);
|
const radio = client.radio.get(newState.guild.id);
|
||||||
if (!radio) return;
|
if (!radio) return;
|
||||||
|
/*
|
||||||
if (newState.member.id === client.user.id && oldState.member.id === client.user.id) {
|
if (newState.member.id === client.user.id && oldState.member.id === client.user.id) {
|
||||||
if (newState.channel === null) {
|
if (newState.channel === null) {
|
||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
@ -29,7 +30,7 @@ module.exports = {
|
|||||||
radio.voiceChannel = newState.channel;
|
radio.voiceChannel = newState.channel;
|
||||||
radio.connection = newState.connection;
|
radio.connection = newState.connection;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
if (oldState.channel.members.size === 1 && oldState.channel === radio.voiceChannel || change) {
|
if (oldState.channel.members.size === 1 && oldState.channel === radio.voiceChannel || change) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;
|
if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user