galacticaapi.js

0.0.7 • Public • Published

galactica.js

Join our discord
Support: https://galactica.ga/dc
NPM: npmjs.com/package/galactica.js
API DOCUMANTS galacticadevelopment.gitbook.io/galactica-devlopment/

Installation

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

  • npm i galactica.js
const Galactica = require("galactica.js");
const dbl = new Galactica("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  // console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("822748323453992980");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("822748323453992980")
  console.log(search)
  /*
  {
    avatar: 'https://cdn.discordapp.com/avatars/838206674400444416/df02eb573964a4e9b6a44855e2202de6.webp',
    botID: '838206674400444416',
    username: 'ToxyBot',
    discrim: '2830',
    shortDesc: 'bot',
    prefix: '! [changable]',
    votes: 31,
    ownerID: '822748323453992980',
    owner: 'x$nN',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});

Package Sidebar

Install

npm i galacticaapi.js

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

3.16 kB

Total Files

3

Last publish

Collaborators

  • galacticadevelopment