No description
Find a file
2016-09-04 13:27:23 +01:00
docs Update README 2016-09-04 13:25:43 +01:00
src document shard 2016-09-04 12:37:42 +01:00
test Add debug stuff 2016-09-04 12:31:16 +01:00
.eslintrc.json Add stricter/better ESLint config (#589) 2016-09-03 20:45:23 +01:00
.gitignore Added guild.kick(member) and member.kick() 2016-07-02 17:50:44 +01:00
.jscsrc initial 2016-04-16 22:58:49 +01:00
.travis.yml Add stricter/better ESLint config (#589) 2016-09-03 20:45:23 +01:00
LICENSE initial 2016-04-16 22:58:49 +01:00
package.json bump to 8.0.0 2016-09-04 12:46:02 +01:00
README.md Update README 2016-09-04 13:25:43 +01:00

discord.js

[![npm](https://img.shields.io/npm/v/discord.js.svg?maxAge=2592000)](https://www.npmjs.com/package/discord.js) [![Build Status](https://travis-ci.org/hydrabolt/discord.js.svg)](https://travis-ci.org/hydrabolt/discord.js) [![David](https://img.shields.io/david/hydrabolt/discord.js.svg?maxAge=2592000)](https://david-dm.org/hydrabolt/discord.js) [![npm](https://img.shields.io/npm/dt/discord.js.svg?maxAge=2592000)](https://www.npmjs.com/package/discord.js)

NPM

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

Installation

Requires node 6.0.0 and above

npm install --save discord.js
# or, if you don't want voice support:
npm install --save --no-optional discord.js

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 bot = new Discord.Client();

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

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

bot.login('your token');

Contact

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