Files
discord.js/docs/general/faq.md
Schuyler Cebulskie 7c97244854 Move to new docgen
2016-11-22 18:24:29 -05:00

1.2 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 6.0.0 or newer.

How do I get voice working?

  • Install FFMPEG.
  • Install either the node-opus package or the opusscript package. node-opus is greatly preferred, due to it having significantly better performance.

How do I install FFMPEG?

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-tools in an admin command prompt or PowerShell. Then, running npm install node-opus in your bot's directory should successfully build it. Woo!