/dcbotlist-api

https://dcbotlist.xyz official api

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

dcbotlist.xyz

Join our discord
Support: https://dcbotlist.xyz/dc
NPM: npmjs.com/package/dcbotlist-api.js

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i dcbotlist-api.js
const vCodes = require("dcbotlist-api.js");
const dbl = new vCodes("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  // console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("859853108292485180");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("701788656695902258")
  console.log(search)
  /*
  {
    avatar: 'https://cdn.discordapp.com/avatars/701788656695902258/8cf145d2189d76cc110101b7a69c6b20.webp',
    botID: '701788656695902258',
    username: 'DCBotlist',
    discrim: '4473',
    shortDesc: 'Cheer up your own server with 🎶',
    prefix: '! [changable]',
    votes: 1,
    ownerID: '267604752764764160',
    owner: 'Claudette',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});