0.0.3 • Published 2 years ago

webiscord v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

web-cord

A library to help you authenticate with the discord's API

\ Example Usage:

const express = require("express");
const wc = require("webiscord");
const webcord = new wc.webcord(
  YOUR_CLIENT_ID,
  YOUR_CLIENT_SECRET
);
const app = express();
app.listen(3000);


app.get('/', (req, res) => {
  res.send("Hello World");
});

app.get('/login', (req, res) => {
  const data = wc.getData(req.query.code);
  console.log(data);
});

\ Example response:

{
  id: "01234567890123456789",
  username: "user",
  avatar: "0123456789abcdefghijklmnopqrstuv",
  discriminator: "0123",
  public_flags: 64,
  flags: 64,
  banner: null,
  banner_color: "#RRGGBB",
  accent_color: 0123456,
  locale: "en-US",
  mfa_enabled: true,
  email: "discord_user@service.com",
  verified: true
}
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago