Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Update dependency discord-player to v5.2.2 #7

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 3, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
discord-player (source) 5.0.2 -> 5.2.2 age adoption passing confidence

Release Notes

Androz2091/discord-player

v5.2.2

Compare Source

Updates

  • 💉Try auto smoothVolume injection on startup
  • 🦥Lazily create voice connection
  • 🔨Check voice intents properly

Full Changelog: Androz2091/discord-player@v5.2.1...v5.2.2

v5.2.1

Compare Source

What's Changed

Full Changelog: Androz2091/discord-player@v5.2.0...v5.2.1

v5.2.0

Compare Source

Features

  • feat(Queue): add onBeforeCreateStream to Queue instance and queue init options
    • See below for example.
  • feat(Queue): add skipTo method (Androz2091/discord-player@751ce12)
    • Skips to the given position in the queue.
  • feat(Queue): add spotifyBridge option (edb517c)
    • This option is by default enabled and it basically resolves spotify tracks from youtube automatically. You can disable this by using spotifyBridge: false on createQueue options
  • feat(Queue): add disableVolume option (87d49c6)
    • Player volume controls are available on-the-fly by default. If you don't need this, you can disable volume controls by simply passing disableVolume: true on createQueue options
  • feat(Queue): handle error events by default (3185557)
    • This will by default emit a warning and log the error if there are no error listeners registered.

Fixes

Queue.onBeforeCreateStream

This method traps the stream downloader. This is not related to extractors api though, since it can bypass those. This could also be used to block certain source like youtube. You can disable spotifyBridge to block spotify<->youtube bridge.

Note: this method may not work properly if spotifyBridge is enabled.

Discord Player won't switch to anything else from ytdl-core at the moment.

const playdl = require("play-dl");

// other code
const queue = player.createQueue(..., {
    ...,,
    spotifyBridge: false, // set this to true if you need spotify<->youtube bridge.
    // setting the bridge to true (which is set to true by default) sets the source to "youtube" for onBeforeCreateStream
    async onBeforeCreateStream(track, source, _queue) {
        // only trap youtube source
        if (source === "youtube") {
            // track here would be youtube track
            return (await playdl.stream(track.url)).stream;
            // we must return readable stream or void (returning void means telling discord-player to look for default extractor)
        } else if (source === "spotify") { // trap spotify
            // resolve spotify stream here
        }
    }
});

Changelog

New Contributors

Full Changelog: Androz2091/discord-player@v5.1.0...v5.2.0

v5.1.0

Compare Source

Breaking

  • Remove useless mute/unmute methods on Queue. (6439590)
    Queue.setVolume() method should now be used instead.

Added

  • Add source info to extractor model. (53d711b)

Fixed

Credits

Thanks to @​DevAndromeda, @​joshuayuen99, @​aiko-chan-ai, @​Yan-Jobs, @​ConnorDoesDev, @​Klairm for their help!


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@artifishvr artifishvr closed this Apr 3, 2022
@renovate
Copy link
Contributor Author

renovate bot commented Apr 3, 2022

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (5.2.2). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

@renovate renovate bot deleted the renovate/discord-player-5.x branch April 3, 2022 00:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants