Skip to content

A library to get information from discord with your bot without the use of any websockets.

Notifications You must be signed in to change notification settings

Jacxk/discord-http.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A library to get information from discord with your bot without the use of any websockets.

Resources

Stars

Watchers

Forks

Packages

No packages published