mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-10-29 19:25:01 +00:00
Fixed some errors
This commit is contained in:
1 parent
1147093788
commit
9648e828e6
2 files changed
+8
-8
No files matched your search
@@ -7,7 +7,7 @@ module.exports = {
|
||||
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, radio);
|
||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||
return client.radio.delete(newState.guild.id);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ module.exports = {
|
||||
const connection = await oldState.channel.join();
|
||||
return radio.connection = connection;
|
||||
} catch (error) {
|
||||
client.funcs.statisticsUpdate(client, newState, radio);
|
||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||
radio.connection.dispatcher.destroy();
|
||||
radio.voiceChannel.leave();
|
||||
client.radio.delete(oldState.guild.id);
|
||||
@@ -34,7 +34,7 @@ module.exports = {
|
||||
setTimeout(() => {
|
||||
if (!radio) return;
|
||||
if (radio.voiceChannel.members.size === 1) {
|
||||
client.funcs.statisticsUpdate(client, newState, radio);
|
||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||
radio.connection.dispatcher.destroy();
|
||||
radio.voiceChannel.leave();
|
||||
client.radio.delete(newState.guild.id);
|
||||
|
||||
Reference in new issue
Block a user