Androz2091 / discord-player

🎧 Complete framework to simplify the implementation of music commands using discord.js v14

Home Page:https://discord-player.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playing song via spotify link errors out

JayXTQ opened this issue · comments

commented

Describe the bug
Whenever I do player.play() with a spotify link, the youtube version is found then opus breaks trying to decode it.

To Reproduce
Steps to reproduce the behavior:

  • Setup a basic discord bot using this plugin
  • Try inputting a spotify link
  • Errors out via the opus library used

Expected behavior
Music should start playing

Please complete the following information:

  • Node Version: Deno is used instead, 1.39.2
  • Discord Player Version: latest (no forced version)
  • Discord.js Version: latest (no forced version)

Additional context
the song I was using to test was gasoline by the weeknd

by the way, it shouldn't be a deno issue due to deno allowing you to run the exact same code and discord.js runs fine on it. if it actually the cause somehow then something will have to be fixed

commented

Nevermind, the original context of the idea was incorrect and after further discussion and debugging, it's a NAPI issue within Deno, so I was of course incorrect. They are currently working on fixing NAPI functions within Deno right now, so we just have to wait for that. Seems like most of the libraries for music in this sense are broken in deno sadly