mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
1.2 KiB
1.2 KiB
Frequently Asked Questions
These questions are some of the most frequently asked.
How do I get voice working?
- Install FFMPEG.
- Install either the
@discordjs/opuspackage or theopusscriptpackage. @discordjs/opus is greatly preferred, due to it having significantly better performance.
How do I install FFMPEG?
- npm:
npm install ffmpeg-static - Ubuntu 20.04:
sudo apt install ffmpeg - Ubuntu 18.04:
sudo apt install ffmpeg - Windows:
npm install ffmpeg-staticor see WikiHow.
How do I set up @discordjs/opus?
- Ubuntu: Simply run
npm install @discordjs/opus, and it's done. Congrats! - Windows: Run
npm install --global --production windows-build-toolsin an admin command prompt or PowerShell. Then, runningnpm install @discordjs/opusin your bot's directory should successfully build it. Woo!
Other questions can be found at the official Discord.js guide If you have issues not listed here or on the guide, feel free to ask in the official Discord.js server. Always make sure to read the documentation.