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 1.1.0 to 1.1.1

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -60,8 +60,8 @@ const ytdl = require('ytdl-core');

// Listener to check if the channel is empty
client.on('voiceStateUpdate', (oldMember, newMember) => {
client.on('voiceStateUpdate', (oldState, newState) => {
if(!this.options.leaveOnEmpty) return;
// If the member leaves a voice channel
if(oldMember.voice.channel && !newMember.voice.channel) return;
if(oldState.channel && !newState.channel) return;
// Search for a queue for this channel
let queue = this.queues.find((g) => g.connection.channel.id === oldMember.voice.channel.id);
let queue = this.queues.find((g) => g.connection.channel.id === oldState.channel.id);
if(queue){

@@ -68,0 +68,0 @@ // Disconnect from the voice channel

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