0.3.0 • Published 6 years ago

discord-http.js v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Discord-HTTP.JS

npm version discord

NPM

discord-http.js is a discord wrapper library will help you get data from your discord bot without getting it online. It does not use websockets which means that this library is limited. Use discord.js to get full access to the discord api.

Installation

npm i discord-http.js --save

Get Started

You just need to require this module and create an async function to await for the response, just like this:

const DiscordHttp = require('discord-http.js');
const client = new DiscordHttp.Client('Token Here');

async function getBotInfo() {
    const user = client.getUser();

    const username = await user.getUsername();

    console.log("Username: %s", username)
}

getBotInfo().catch(console.error);

Example Code

Documentation

This is still work in progress. More to come.