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