Danger

This documentation is for the discord.js 8.2 branch called discordv8 maintained by macdja38. You’re probably looking for documentation on version 9 or higher, which is available on the other docs site.

Installing discordv8

To install discordv8, you need a few dependencies.

Warning

When installing with any of these methods, you’ll encounter some errors. This is because an optional dependency isn’t working properly, but discordv8 should still work fine.


Windows


Your Visual Studio installation ideally has to be recent, but you can try installing without it first. You can use Express, Community, Enteprise or any others apart from VS Code.

  • You (obviously) need NodeJS. Node 4 or higher is recommended.

After you have installed these things, to install just run: npm install --save --msvs_version=2015 discordv8 to install the latest version of discordv8 for your project.

Additional Audio Support

  • Install ffmpeg and add it to your PATH.

Linux (Debian-based)


  • You (obviously) need NodeJS Linux. Node 4 or higher is recommended.
$ sudo apt-get install build-essential
$ npm install --save discordv8

Additional Audio Support

$ sudo apt-get install ffmpeg

Note: Ubuntu 14.04 needs to do:

$ sudo add-apt-repository ppa:mc3man/trusty-media && sudo apt-get update && sudo apt-get install ffmpeg