mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +00:00
Fixing #11
This commit is contained in:
parent
22b4ab146f
commit
3c283a52e0
@ -32,7 +32,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
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) return;
|
if (!radio || !radio.connection.dispatcher || !radio.connection.dispatcher === null) return;
|
||||||
if (radio.voiceChannel.members.size === 1) {
|
if (radio.voiceChannel.members.size === 1) {
|
||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection.dispatcher.destroy();
|
radio.connection.dispatcher.destroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user