From 3a8e2a88403e8361666435497816862853eb9c4e Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Tue, 21 Apr 2020 17:04:21 +1000 Subject: [PATCH] replaced some stuff --- utils/music.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/music.js b/utils/music.js index 756a4e6..b0b938e 100644 --- a/utils/music.js +++ b/utils/music.js @@ -67,7 +67,7 @@ exports.getVideoByQuery = async function (client, query) { exports.play = async function (client, message, query, ignoreQueue) { const guild = exports.getGuild(message.guild.id) - if (!message.member.voice.channel && !guild.voiceChannel) { + if (!message.member.voice.channel && !guild.voice.channel) { return message.reply('You have to be connected to a voice channel to use this command!') } @@ -168,7 +168,7 @@ exports.play = async function (client, message, query, ignoreQueue) { } else { guild.playing = true - guild.voiceChannel = vc + guild.voice.channel = vc const connection = await vc.join()