-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Play a mp3 fail #5778
Comments
@TimoCoupek have you installed |
this is the result when I try to install it |
Could you give information about your system? E.g. what version of Windows you are running with, what your Node.js and discord.js versions are |
Windows: Windows 10 Enterprise |
Are you sure about that discord.js version? It's quite a few years old... |
and how do i update it because if i uninstall and re-install it i always get that version |
also with this command (npm i discord.js@11.6.4) it installs me the version 7 |
I have tried everywhere on the internet also how to update discord.js but I can not and every time I try to re install the opus gives me the same errors |
v7 (?!) and v11 of discord.js are not supported by us anymore. Secondly, for the build errors, please provide the full error in a text format (see: gists, hastebin, etc.). Before that, make sure you have build tools installed on your PC (although shouldn't be necessary since we have prebuilds) (you need C++ build tools and Python 3 installed for building from source) |
This are the errors when i try to install @discordjs/opus now: npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
You seem to have misspelled Also the error suggests that you do have VS19 installed, but are missing the "Desktop development with C++" workload(?). |
Hi there, We're working on a new implementation of Discord's Voice API that has better playback quality and is more reliable than what we currently support in Discord.js v12 - check it out at https://github.com/discordjs/voice! The new library solves many of the issues that users are facing, and as part of this, we're dropping built-in support for voice in our next major release. We have a PR (#5402) that adds native support for our new voice library - once this PR is merged, this issue will be closed. You can still use our new voice library before that PR lands - just take a look at our music bot example to see how to get started upgrading your voice code. By using the boilerplate music player in the example, you can make it even easier to upgrade your code. Note that the PR above only reduces some of the boilerplate code you'd otherwise have to write - you do not have to wait for the PR to be merged to start using the new voice library. If you have any questions about this, feel free to:
|
I've tried any tutorial there is in the world but I can't play an mp3 file every time I try this error comes up:
at Object.loader [as require] (M:*\exschool\JAWS BOT Database\node_modules\prism-media\src\util\loader.js:12:9)
at loadOpus (M:*\exschool\JAWS BOT Database\node_modules\prism-media\src\opus\Opus.js:17:17)
at new OpusStream (M:*\exschool\JAWS BOT Database\node_modules\prism-media\src\opus\Opus.js:46:10)
at new Encoder (M:*\exschool\JAWS BOT Database\node_modules\prism-media\src\opus\Opus.js:149:5)
at AudioPlayer.playPCMStream (M:*\exschool\JAWS BOT Database\node_modules\discord.js\src\client\voiceplayer\BasePlayer.js:58:34)
at AudioPlayer.playUnknown (M:***\exschool\JAWS BOT Database\node_modules\discord.js\src\client\voiceplayer\BasePlayer.js:53:17)
at VoiceConnection.play (M:*\exschool\JAWS BOT Database\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28)
in M:*\exschool\JAWS BOT Database\index.js:305:32
at processTicksAndRejections (node:internal/process/task_queues:94:5)
Translated with www.DeepL.com/Translator (free version)
The text was updated successfully, but these errors were encountered: