Files
discord.js/docs/general/faq.md
Souji b727f6c1b9 feat: bring embed builder field manipulation in line with underlying array functionality (#3761)
* feat: splice multiple fields

* remove MessageEmbed#spliceField
* add MessageEmbed#spliceFields
* to behave more like Array#splice
* and allow multiple fields to be replaced/inserted
* update typings accordingly

* refactor: rename check to normalize

* check suggests boolean return type

* feat: allow spread args or array as field input

* rewrite: replace addField in favor of addFields

* typings: account for changes

* chore: bump min node to 11.0.0

* for Array#flat

* fix: bump min-node in package engines field

* remove addBlankField
2020-02-23 20:41:48 +01:00

1.5 KiB

Frequently Asked Questions

These questions are some of the most frequently asked.

No matter what, I get SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Update to Node.js 11.0.0 or newer.

How do I get voice working?

  • Install FFMPEG.
  • Install either the @discordjs/opus package or the opusscript package. @discordjs/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-binaries or see the FFMPEG section of AoDude's guide.

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-tools in an admin command prompt or PowerShell. Then, running npm install @discordjs/opus in 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.