discord-http.js

0.3.0 • Public • Published

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.

Package Sidebar

Install

npm i discord-http.js

Weekly Downloads

0

Version

0.3.0

License

ISC

Unpacked Size

46.3 kB

Total Files

14

Last publish

Collaborators

  • jacxk