1.0.0 • Published 4 years ago

@mrdioogo/lemon.js v1.0.0

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
4 years ago

Lemon.JS

WIP

npm

A Node.js module providing a set of interfaces to interact with Discord API.

Documentation

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)
  • 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

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");
});