forked from embee/woomy
replaced some stuff
This commit is contained in:
parent
24cfe07310
commit
3a8e2a8840
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue