jericho-player
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "jericho-player", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "LightWeight Framework for discord.js v13 Music Bots and Radio Bots with fast moderation with commands and no memory leak mode", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -298,14 +298,8 @@ const EventEmitter = require('events'); | ||
if ( | ||
!guildId | ||
|| !( | ||
guildId | ||
&& guildId.id | ||
&& (typeof guildId.id === typeof Guild.id | ||
|| typeof guildId.id === 'string' | ||
|| typeof guildId.id === 'number') | ||
) | ||
guildId | ||
&& guildId.id | ||
&& (typeof guildId.id === 'string' || typeof guildId.id === 'number') | ||
) { | ||
guildId = guildId.id; | ||
} | ||
if ( | ||
} else if ( | ||
!guildId | ||
@@ -316,8 +310,2 @@ || !(guildId && (typeof guildId === 'string' || typeof guildId === 'number')) | ||
} | ||
if ( | ||
!guildId | ||
|| !(guildId && (typeof guildId === 'string' || typeof guildId === 'number')) | ||
) { | ||
return void this.emit('error', 'Invalid Guild Id', this, guildId); | ||
} | ||
// Checks for Queue in Cache doesn't matter if its Connection was destroyed | Cache only fetch its Existence to avoid excess CPU load | ||
@@ -337,10 +325,5 @@ if (Player.#QueueCacheFetch(guildId)) { | ||
if ( | ||
!guildId | ||
|| !( | ||
guildId | ||
&& guildId.id | ||
&& (typeof guildId.id === typeof Guild.id | ||
|| typeof guildId.id === 'string' | ||
|| typeof guildId.id === 'number') | ||
) | ||
guildId | ||
&& guildId.id | ||
&& (typeof guildId.id === 'string' || typeof guildId.id === 'number') | ||
) { | ||
@@ -347,0 +330,0 @@ guildId = guildId.id; |
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
169766
4790