open-index/open-npm huggingface dataset:
npm package: @mrdioogo/lemon.js
Description: A Node.js module for interfacing with the Discord API.
Author: MrDioogo
Latest version: 1.0.0

# Lemon.JS

### WIP
[![npm](https://img.shields.io/npm/dm/@mrdioogo/lemon.js)](https://npmjs.com/package/lemon.js)

A Node.js module providing a set of interfaces to interact with Discord API.

[**Documentation**](http://mrdioogo.github.io/lemonjs/)

**Requires at least Node.js 4.0.0.**

**No native modules required to work with audio. Choose from precompiled (default) or `node-opus` (optional).**

## 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/MrDioogo/LemonJS/blob/master/examples/encoderstream.js))
* Guild (server) and channel management API
* Local user profile (username change, statuses, avatars)
* Multiserver voice support

## Documentation

http://MrDioogo.github.io/LemonJS/

Mirrors inline documentation in files:
* `lib/interfaces/*.js`
* `lib/models/*.js`
* `lib/voice/*.js`
* `lib/Constants.js`
* `lib/index.js`

## Example

```js
var Lemon = require("@mrdioogo/lemon.js");
var Events = Lemon.Events;

var client = new Lemon();

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");
});
```