simple-diffcord
v1.2.1
Published
Simply interact with the diffcord API
Downloads
1
Readme
#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