player-engine
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -13,3 +13,3 @@ "use strict"; | ||
Player: { | ||
engine: "youtube", | ||
engine: "YouTube", | ||
leaveOnEnd: true, | ||
@@ -16,0 +16,0 @@ selfDeaf: true, |
@@ -87,3 +87,3 @@ "use strict"; | ||
this.settings.engine = engine; | ||
this.engine = Engines[engine]; | ||
this.engine = new Engines[engine]; | ||
return this; | ||
@@ -240,3 +240,3 @@ } | ||
if (!this.tracks.nextTracks().length) { | ||
this.emit(Enums_1.PlayerEvents.END); | ||
this.emit(Enums_1.PlayerEvents.END, this.tracks.current()); | ||
if (this.settings.leaveOnEnd) { | ||
@@ -243,0 +243,0 @@ if (this.vcSubscription instanceof voice_1.PlayerSubscription) |
@@ -7,3 +7,3 @@ import Player from "../../Classes/Player"; | ||
import { VoiceConnection } from "@discordjs/voice"; | ||
export declare type SupportedEngines = "youtube" | "soundcloud" | "deezer" | "spotify"; | ||
export declare type SupportedEngines = "YouTube" | "SoundCloud" | "Deezer" | "Spotify"; | ||
export declare type SupportedEngineClasses = YouTube | Deezer | Spotify | SoundCloud; | ||
@@ -10,0 +10,0 @@ export declare type RepeatMode = "one" | "all" | "none"; |
{ | ||
"name": "player-engine", | ||
"description": "Play your Musics in Your Discord Music Bot | Discord.js V13 Only", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42199
1