# discordie

> A Node.js module for interfacing with the Discord API.

Latest version **0.11.0** (published 2017-01-08) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install discordie
pnpm add discordie
yarn add discordie
bun add discordie
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.11.0 |
| Published | 2017-01-08 |
| First published | 2015-11-21 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 188 |
| Author | qeled |
| Maintainers | discordie |
| Keywords | discordapp, discord, api, client, node, node.js |

## Links

- npm: https://www.npmjs.com/package/discordie
- Repository: https://github.com/qeled/discordie
- Homepage: https://github.com/qeled/discordie#readme
- Issues: https://github.com/qeled/discordie/issues
- npm.io page: https://npm.io/package/discordie

## Dependencies (7)

- [ws](https://npm.io/package/ws.md) ^1.1.1
- [ebml](https://npm.io/package/ebml.md) ^2.1.0
- [pako](https://npm.io/package/pako.md) ^0.2.8
- [tweetnacl](https://npm.io/package/tweetnacl.md) ^0.14.1
- [superagent](https://npm.io/package/superagent.md) ^1.4.0
- [requireindex](https://npm.io/package/requireindex.md) ^1.1.0
- [double-ended-queue](https://npm.io/package/double-ended-queue.md) ^0.9.7

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.11.0 (latest) — 2017-01-08
- 0.10.0 — 2016-12-01
- 0.9.0 — 2016-10-19
- 0.8.1 — 2016-08-31
- 0.8.0 — 2016-08-17
- 0.7.6 — 2016-08-04
- 0.7.5 — 2016-07-29
- 0.7.4 — 2016-07-16
- 0.7.3 — 2016-07-16
- 0.7.2 — 2016-06-25
- 0.7.1 — 2016-06-19
- 0.7.0 — 2016-06-18
- 0.6.5 — 2016-05-29
- 0.6.4 — 2016-05-22
- 0.6.3 — 2016-05-20
- … 31 more at https://npm.io/package/discordie/versions

## README

# Discordie

[![npm](https://img.shields.io/npm/dm/discordie.svg)](https://www.npmjs.com/package/discordie)

A Node.js module providing a set of interfaces to interact with Discord API.

[**Documentation**](http://qeled.github.io/discordie/)

**Requires at least Node.js 4.0.0.**

**No native modules required to work with audio. Choose from precompiled (default) or `node-opus` (optional).**

Join [#node_discordie](https://discord.gg/0SBTUU1wZTYM8nHo) in [Discord API](https://discord.gg/0SBTUU1wZTYM8nHo).

## Fully Implemented

* Messaging
* Role and channel permission management API
* Member management API (kicking, banning, etc.)
* Direct messages
* Voice encoding, sending, decoding and receiving
(audio streaming example: [`examples/encoderstream.js`](https://github.com/qeled/discordie/blob/master/examples/encoderstream.js))
* Guild (server) and channel management API
* Local user profile (username change, statuses, avatars)
* Multiserver voice support

## Documentation

http://qeled.github.io/discordie/

Mirrors inline documentation in files:
* `lib/interfaces/*.js`
* `lib/models/*.js`
* `lib/voice/*.js`
* `lib/Constants.js`
* `lib/index.js`

## Example

```js
var Discordie = require("discordie");
var Events = Discordie.Events;

var client = new Discordie();

client.connect({ token: "" });

client.Dispatcher.on(Events.GATEWAY_READY, e => {
  console.log("Connected as: " + client.User.username);
});

client.Dispatcher.on(Events.MESSAGE_CREATE, e => {
  if (e.message.content == "ping")
    e.message.channel.sendMessage("pong");
});
```

## Related

### Library comparison: https://discordapi.com/unofficial/comparison.html

**.NET**:
[RogueException/**Discord.Net**](https://github.com/RogueException/Discord.Net) ||
[Luigifan/**DiscordSharp**](https://github.com/Luigifan/DiscordSharp) ||
[robinhood128/**DiscordUnity**](https://github.com/robinhood128/DiscordUnity)

**Node.js**:
[izy521/**discord.io**](https://github.com/izy521/discord.io) ||
[hydrabolt/**discord.js**](https://github.com/hydrabolt/discord.js) ||
[abalabahaha/**eris**](https://github.com/abalabahaha/eris)

**Python**:
[Rapptz/**discord.py**](https://github.com/Rapptz/discord.py)

**Ruby**:
[meew0/**discordrb**](https://github.com/meew0/discordrb)

**Go**:
[bwmarrin/**discordgo**](https://github.com/bwmarrin/discordgo)

**Rust**:
[SpaceManiac/**discord-rs**](https://github.com/SpaceManiac/discord-rs)

**PHP**:
[teamreflex/**DiscordPHP**](https://github.com/teamreflex/DiscordPHP) ||
[Cleanse/**discord-hypertext**](https://github.com/Cleanse/discord-hypertext)

**Java**:
[austinv11/**Discord4J**](https://github.com/austinv11/Discord4J) ||
[DV8FromTheWorld/**JDA**](https://github.com/DV8FromTheWorld/JDA/) ||
[BtoBastian/**Javacord**](https://github.com/BtoBastian/Javacord)

**Lua**:
[SinisterRectus/**Discordia**](https://github.com/SinisterRectus/Discordia) ||
[satom99/**litcord**](https://github.com/satom99/litcord)

---
_Source: https://npm.io/package/discordie · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
