1.3.0 • Published 4 years ago
ghyrt v1.3.0
vcodes.js
Support: https://vcodes.xyz/dc NPM: npmjs.com/package/vcodes.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i ghyrt
const api = require("ghyrt");
client.on("ready", async () => {
api.serverCount();
// console.log("Server count posted")
let hasVote = await api .hasVoted("714451348212678658");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await api.search("779641401482805289")
console.log(search)
/*
{
avatar: 'https://cdn.discordapp.com/avatars/779641401482805289/8cf145d2189d76cc110101b7a69c6b20.webp',
botID: '779641401482805289',
username: 'Allegro',
discrim: '2830',
shortDesc: 'Cheer up your own server with 🎶',
prefix: '! [changable]',
votes: 31,
ownerID: '714451348212678658',
owner: 'Claudette',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});
1.3.0
4 years ago