Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-player

Package Overview
Dependencies
Maintainers
1
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-player - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc