hoaxapi
v1.0.2
Published
Api For Discord Bot List
Downloads
1
Readme
hoaxapi
NPM: npmjs.com/package/hoaxapi
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i hoaxapi
const hoax = require("hoaxapi");
const dbl = new hoax("TOKEN-WEB-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
// console.log("Server count posted")
let hasVote = await dbl.hasVoted("USER-ID");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("BOT-INFO-WEB-ID")
console.log(search)
/*
{
avatar: 'https://cdn.discordapp.com/avatars/779641401482805289/8cf145d2189d76cc110101b7a69c6b20.webp',
botID: '779641401482805289',
username: 'Rusty',
discrim: '2002',
shortDesc: 'Cheer up your own server with 🎶',
prefix: '! [changable]',
votes: 31,
ownerID: '695712816316940347',
owner: 'Service',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});