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
359
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 2.3.0 to 2.3.1

4

package.json
{
"name": "discord-player",
"version": "2.3.0",
"version": "2.3.1",
"description": "Complete framework to facilitate music commands using discord.js v12",

@@ -36,3 +36,3 @@ "main": "index.js",

"ytpl": "^0.2.0",
"ytsr": "^0.1.18"
"ytsr": "^0.1.19"
},

@@ -39,0 +39,0 @@ "devDependencies": {

@@ -206,7 +206,8 @@ const ytdl = require('discord-ytdl-core')

}
ytsr(query, (err, results) => {
ytsr(query).then((results) => {
if (results.items.length < 1) return resolve([])
if (err) return resolve([])
const resultsVideo = results.items.filter((i) => i.type === 'video')
resolve(allResults ? resultsVideo.map((r) => new Track(r, null, null)) : [new Track(resultsVideo[0], null, null)])
}).catch(() => {
return resolve([])
})

@@ -389,2 +390,3 @@ })

queue.tracks = []
if (queue.stream) queue.stream.destroy()
queue.voiceConnection.dispatcher.end()

@@ -766,3 +768,5 @@ // Resolve

// Stream time of the dispatcher
const currentStreamTime = queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime
const currentStreamTime = queue.voiceConnection.dispatcher
? queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime
: 0
// Total stream time

@@ -769,0 +773,0 @@ const totalTime = queue.playing.durationMS

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