simple-diffcord

1.2.1 • Public • Published

#simple-diffcord

This is a simple (third-party) node module for interacting with the diffcord API.

Usage:

const { diffcord } = require("simple-diffcord")
const diffcordClient = new diffcord({
  key: "API_KEY"
})

//update server and shard count:
let guildCountResponse = await diffcord.updateGuildCount(14000, 5) // returns true
// OR - Automatically update:
diffcordClient.autoUpdate(client) //updates every 30 minutes

//Check if a user has voted:
let voteResponse = await diffcord.getVote("167625500498329600")
if (voteResponse.hasVoted) console.log("User has voted! Give reward!!")

// Check your voted this month:
let allVotes = await diffcord.getAllVotes() //returns { month_votes: 2 }

Thanks to the contributors: numselli#6964

Readme

Keywords

none

Package Sidebar

Install

npm i simple-diffcord

Weekly Downloads

1

Version

1.2.1

License

GPL-3.0-or-later

Unpacked Size

6.04 kB

Total Files

4

Last publish

Collaborators

  • npmuser_984