1.0.1 • Published 4 years ago
xbl.js v1.0.1
xbl.js
An API Wrapper for https://xysebotlist.ga/
How to use
const API = require("xbl.js")
async function uwu() {
//promise with async/await
const Result = await API.get("750154233080447046")
console.log(Result)
//promise with then/catch
API.get("750154233080447046").then(res => {
console.log(res)
})
}
uwu()
The result should be like this:
//{
// "status":200,
// "statusText":"OK",
// "bot": {
// "id":"750154233080447046",
// "username":"XBL",
// "avatarurl": {
// "webp":"https://cdn.discordapp.com/avatars/750154233080447046/2722c6ca9406a32ea92047fe4994af0d.webp",
// "png":"https://cdn.discordapp.com/avatars/750154233080447046/2722c6ca9406a32ea92047fe4994af0d.png",
// "jpg":"https://cdn.discordapp.com/avatars/750154233080447046/2722c6ca9406a32ea92047fe4994af0d.jpg",
// "jpeg":"https://cdn.discordapp.com/avatars/750154233080447046/2722c6ca9406a32ea92047fe4994af0d.jpeg",
// "gif":"https://cdn.discordapp.com/avatars/750154233080447046/2722c6ca9406a32ea92047fe4994af0d.gif"
// },
// "discriminator":"0360",
// "prefix":"x!",
// "owner": {
// "id":"733968991264964649",
// "username":"XySe",
// "discriminator":"7464",
// "avatar":"https://cdn.discordapp.com/avatars/733968991264964649/cd24ecdc6d9d3737b18b9de18e5d9a21.webp"
// },
// "upvotes":121
// },
// "details":"success"
//}