
<p align="center"><img src="http://i.imgur.com/kFzW7Uo.png"></p>
<h1 align="center">discord.io</h1>
A small, single-file, fully featured [Discordapp](https://discordapp.com) library for Node.js and browsers.

[![Discord](https://discordapp.com/api/guilds/66192955777486848/widget.png)](https://discord.gg/0MvHMfHcTKVVmIGP) [![NPM](https://img.shields.io/npm/v/discord.io.svg)](https://img.shields.io/npm/v/gh-badges.svg)

### Installation
`npm install discord.io`

### [Documentation / Gitbooks](https://www.gitbook.com/book/izy521/discord-io/details)

### Example
```javascript
var Discord = require('discord.io');
var bot = new Discord.Client({
    token: "",
    autorun: true
});

bot.on('ready', function() {
    console.log(bot.username + " - (" + bot.id + ")");
});

bot.on('message', function(user, userID, channelID, message, event) {
    if (message === "ping") {
        bot.sendMessage({
            to: channelID,
            message: "pong"
        });
    }
});
```



<p align="center"><img src="http://i.imgur.com/kFzW7Uo.png"></p>
<h1 align="center">discord.io</h1>
A small, single-file, fully featured [Discordapp](https://discordapp.com) library for Node.js and browsers.

[![Discord](https://discordapp.com/api/guilds/66192955777486848/widget.png)](https://discord.gg/0MvHMfHcTKVVmIGP) [![NPM](https://img.shields.io/npm/v/discord.io.svg)](https://img.shields.io/npm/v/gh-badges.svg)

### Installation
`npm install discord.io`

### [Documentation / Gitbooks](https://izy521.gitbooks.io/discord-io/content/)

### Example
```javascript
var Discord = require('discord.io');
var bot = new Discord.Client({
    token: "",
    autorun: true
});

bot.on('ready', function() {
    console.log(bot.username + " - (" + bot.id + ")");
});

bot.on('message', function(user, userID, channelID, message, event) {
    if (message === "ping") {
        bot.sendMessage({
            to: channelID,
            message: "pong"
        });
    }
});
```


Update documentation link to direct GitBook Docs
Update documentation link to direct GitBook Docs

It is not intuitive to click the "Read" button in the overview Gitbooks page, this changes the link to be direct to the documentation.