discord-player
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "discord-player", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Complete framework to facilitate music commands using discord.js v12", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -98,7 +98,9 @@ const ytdl = require('ytdl-core'); | ||
if(!video) reject('Song not found'); | ||
// Joins the voice channel | ||
let connection = await voiceChannel.join(); | ||
if(!voiceChannel.guild.me.voice.channel || (voiceChannel.guild.me.voice.channel.id !== voiceChannel.id)){ | ||
// Joins the voice channel | ||
await voiceChannel.join(); | ||
} | ||
// Creates a new guild with data | ||
let queue = new Queue(voiceChannel.guild.id); | ||
queue.connection = connection; | ||
queue.connection = voiceChannel.guild.me.voice.connection; | ||
let song = new Song(video, queue); | ||
@@ -105,0 +107,0 @@ queue.songs.push(song); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26102
461