Perry Berman f7a542f12b Add optional streamOptions to playStream() functions (#663)
* Adding playStream options

Added optional volume and seek properties

* fixed code formatting

Edited my code styling to match with the rest of d.js

* Added Default Variable

* Added Documentation

Added documentation for the streamOptions parameter
Added a default value for seek in FFmpegConverterEngine
Removed redundantcy

* Fixed docs for voiceConnection

* Change _updateMember's notSame check from && to || (#665)

* Fixed git merge fail

* Built Docs. Again.........

* Hopefully finally fixed
2016-09-08 22:49:52 -04:00
2016-09-04 12:31:16 +01:00
2016-04-16 22:58:49 +01:00
2016-09-04 14:59:52 +01:00
2016-09-07 02:24:25 -04:00

discord.js

Discord npm npm Build Status David

NPM

discord.js is a powerful node.js module that allows you to interact with the Discord API.

Installation

Node.js 6.0.0 or newer is required.
With voice support: npm install --save discord.js --production
Without voice support: npm install --save discord.js --production --no-optional

By default, discord.js uses opusscript when playing audio over voice connections. If you're looking to play over multiple voice connections, it might be better to install node-opus. discord.js will automatically prefer node-opus over opusscript.

Example Usage

const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
  console.log('I am ready!');
});

client.on('message', message => {
  if (message.content === 'ping') {
    message.reply('pong');
  }
});

client.login('your token');

Contact

Before reporting an issue, please read the documentation. If you can't find help there, you can ask in the official Discord.js Server.

Languages
TypeScript 61.1%
JavaScript 28.5%
MDX 10.1%
CSS 0.2%