1.2.1 • Published 1 year ago

simple-diffcord v1.2.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
1 year ago

#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

1.2.1

1 year ago

1.2.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago