0.1.0 • Published 3 years ago

@aloima/elisjs v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

elisjs

A functional Discord API wrapper focused on stability and performance.

Documentation

Has a documentation but too bad so I didn't give its link.

Example

const elisjs = require("elisjs");
const client = elis.create("your token" {
  compress: true // default value is false, enables zlib-stream parsing.
});

client.events.ready = (() => {
  client.user.presence.setStatus("dnd");
  client.user.presence.addActivity({
    name: "activity name",
    type: 0
  });
});

client.events.messageCreate = (async (message) => {
  await message.channel.send(`this message written by <@!${message.author.id}>.`);
});

client.login();

Modules

You can use zlib-sync package for compress option for now.

Supporting

  • Message
  • Guild
  • Channel (TextChannel)
  • Client (zlib-stream compress)
  • Presences (partially)

Support server

You can take support in this server in #elisjs-support.