discord-lang

A low level binding library for interacting with the discord API.

Usage no npm install needed!

<script type="module">
  import discordLang from 'https://cdn.skypack.dev/discord-lang';
</script>

README

Discord Lang

Discord Lang is a library made to interact wit the discord API easily.

Examples

const Discord = require("discord-lite");

const Bot = new Discord.Bot();

Bot.OpenConnection("token");

Bot.on("WebsocketConnect", () => console.log(`Ready!`));

Bot.on("WebsocketMessage", Message => {
  if (Message.Author.Bot) return;

  if (Message.Content === "!ping") {
    return Message.Channel.SendMessage(`<@${Message.Author.ID}> Pong!`);
  }
});

If you need more help about anything join to our support server here.