No description
Find a file
Gus Caplan c8761d72de add guild emoji methods (#742)
* add guild emoji methods

* run docs

* crawl pointed out some things about the docs, so i fixed

* actually run the docs on the changes 🤦
2016-09-26 21:39:07 +01:00
docs add guild emoji methods (#742) 2016-09-26 21:39:07 +01:00
src add guild emoji methods (#742) 2016-09-26 21:39:07 +01:00
test Fix resuming sessions (fixes #699) 2016-09-25 15:03:54 +01:00
.eslintrc.json smarter sharding™ (#732) 2016-09-23 21:43:16 +01:00
.gitignore Added guild.kick(member) and member.kick() 2016-07-02 17:50:44 +01:00
.travis.yml Add stricter/better ESLint config (#589) 2016-09-03 20:45:23 +01:00
CONTRIBUTING.md Probably fix GitHub's lacklustre rendering 2016-09-07 02:37:43 -04:00
LICENSE initial 2016-04-16 22:58:49 +01:00
package.json Version bump to 9.3.0 \o/ 2016-09-24 19:54:29 +01:00
README.md Add link to Discord API in README 2016-09-11 17:53:49 +01: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.