mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
* Bring some docs up to date, as well as add a new example * Missed an exclamation mark * Do requested changes * Do suggestions * Same suggestions for the other examples * Show people that they can also use reply with embeds * Typos in embed.js example * Remove object example from embeds, too complex Suggested by Yukine * Some changes, some requested changes * Add moderation examples! * Add attachment examples * Missing dot * Fix spacing * Requested Changes * Quote consistency * Tfw you break the syntax
1.3 KiB
1.3 KiB
Frequently Asked Questions
These are just questions that get asked frequently, that usually have a common resolution. If you have issues not listed here, please ask in the official Discord server. Always make sure to read the documentation.
No matter what, I get SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode‽
Update to Node.js 8.0.0 or newer.
How do I get voice working?
- Install FFMPEG.
- Install either the
node-opuspackage or theopusscriptpackage. node-opus is greatly preferred, due to it having significantly better performance.
How do I install FFMPEG?
- npm:
npm install ffmpeg-binaries - Ubuntu 16.04:
sudo apt install ffmpeg - Ubuntu 14.04:
sudo apt-get install libav-tools - Windows:
npm install ffmpeg-binariesor see the FFMPEG section of AoDude's guide.
How do I set up node-opus?
- Ubuntu: Simply run
npm install node-opus, and it's done. Congrats! - Windows: Run
npm install --global --production windows-build-toolsin an admin command prompt or PowerShell. Then, runningnpm install node-opusin your bot's directory should successfully build it. Woo!