New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-player

Package Overview
Dependencies
Maintainers
2
Versions
367
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 5.0.0-dev.1 to 5.0.0-dev.32ed41cbcb4dd4522656534808b60a00c2b40f94

0

lib/index.d.ts

@@ -0,0 +0,0 @@ export { AudioFilters } from "./utils/AudioFilters";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Client, Collection, GuildResolvable } from "discord.js";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ExtractorModelData } from "../types/types";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Player } from "../Player";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

23

lib/Structures/Queue.js

@@ -165,3 +165,3 @@ "use strict";

return;
const newFilters = AudioFilters_1.default.create(_filters);
const newFilters = AudioFilters_1.default.create(_filters).trim();
const streamTime = this.streamTime;

@@ -173,3 +173,3 @@ this._activeFilters = _filters;

seek: streamTime,
encoderArgs: ["-af", newFilters]
encoderArgs: !_filters.length ? undefined : ["-af", newFilters]
});

@@ -213,3 +213,3 @@ });

}
let stream;
let stream, pauseEvent = false;
if (["youtube", "spotify"].includes(track.raw.source)) {

@@ -224,3 +224,6 @@ if (track.raw.source === "spotify" && !track.raw.engine) {

return void this.play(this.tracks.shift(), { immediate: true });
stream = discord_ytdl_core_1.default(link, Object.assign(Object.assign({}, this.options.ytdlOptions), { opusEncoded: false, fmt: "s16le", encoderArgs: ((_a = options.encoderArgs) !== null && _a !== void 0 ? _a : this._activeFilters.length) ? ["-af", AudioFilters_1.default.create(this._activeFilters)] : [], seek: options.seek ? options.seek / 1000 : 0 })).on("error", (err) => (err.message.toLowerCase().includes("premature close") ? null : this.player.emit("error", this, err)));
stream = discord_ytdl_core_1.default(link, Object.assign(Object.assign({}, this.options.ytdlOptions), { opusEncoded: false, fmt: "s16le", encoderArgs: ((_a = options.encoderArgs) !== null && _a !== void 0 ? _a : this._activeFilters.length) ? ["-af", AudioFilters_1.default.create(this._activeFilters)] : [], seek: options.seek ? options.seek / 1000 : 0 })).on("error", (err) => {
pauseEvent = true;
return err.message.toLowerCase().includes("premature close") ? null : this.player.emit("error", this, err);
});
}

@@ -235,3 +238,6 @@ else {

})
.on("error", (err) => (err.message.toLowerCase().includes("premature close") ? null : this.player.emit("error", this, err)));
.on("error", (err) => {
pauseEvent = true;
return err.message.toLowerCase().includes("premature close") ? null : this.player.emit("error", this, err);
});
}

@@ -248,4 +254,5 @@ const resource = this.connection.createStream(stream, {

this.playing = true;
if (!options.filtersUpdate)
this.player.emit("trackStart", this, this.current);
if (options.filtersUpdate || pauseEvent)
return;
this.player.emit("trackStart", this, this.current);
});

@@ -255,3 +262,3 @@ dispatcher.once("finish", () => __awaiter(this, void 0, void 0, function* () {

this.playing = false;
if (options.filtersUpdate)
if (options.filtersUpdate || pauseEvent)
return;

@@ -258,0 +265,0 @@ this._streamTime = 0;

@@ -0,0 +0,0 @@ import { User } from "discord.js";

@@ -0,0 +0,0 @@ "use strict";

@@ -40,4 +40,4 @@ /// <reference types="node" />

fadein?: boolean;
dim?: string;
earrape?: string;
dim?: boolean;
earrape?: boolean;
};

@@ -44,0 +44,0 @@ export declare type TrackSource = "soundcloud" | "youtube" | "spotify" | "arbitrary";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { FiltersName } from "../types/types";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { QueryType } from "../types/types";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { StageChannel, VoiceChannel } from "discord.js";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { VoiceChannel, StageChannel, Collection, Snowflake } from "discord.js";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "discord-player",
"version": "5.0.0-dev.1",
"version": "5.0.0-dev.32ed41cbcb4dd4522656534808b60a00c2b40f94",
"description": "Complete framework to facilitate music commands using discord.js",

@@ -72,3 +72,3 @@ "main": "lib/index.js",

"discord-api-types": "^0.18.1",
"discord.js": "^13.0.0-dev.807ea2d3c197c7c6556bd1c894114932f6657d49",
"discord.js": "^13.0.0-dev.1f8f3ab0f8dbd346154bbfa14a98726b8df25d57",
"discord.js-docgen": "discordjs/docgen#ts-patch",

@@ -75,0 +75,0 @@ "jsdoc-babel": "^0.5.0",

@@ -7,2 +7,3 @@ # Discord Player

[![discordBadge](https://img.shields.io/discord/558328638911545423?style=for-the-badge&color=7289da)](https://androz2091.fr/discord)
[![wakatime](https://wakatime.com/badge/github/Androz2091/discord-player.svg)](https://wakatime.com/badge/github/Androz2091/discord-player)

@@ -9,0 +10,0 @@ > V5 WIP

Sorry, the diff of this file is not supported yet

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