Skip to content

Releases: Top-gg-Community/node-sdk

v2.0.0

29 Mar 20:14
5f70ada
Compare
Choose a tag to compare
  • getVotes()
    • No longer has onlyIds or days parameters
    • Due to API change, only shows the last 1000 votes.
  • hasVoted()
    • No longer has days parameter
  • The library now checks if a library is supported for autoposting
  • Added options
    • Added statsInterval for a custom autoposter interval
    • Added webhookPort, webhookPath and webhookAuth for the new feature below
  • Webhooks!
    • You can now listen to webhooks with already familiar events!
    • Starts automatically when webhookPort option is set
    • ready event for checking when the webhook is listening
    • vote event with the webhook vote object after you receive a vote
    • Depending on your server setup , you may have to open ports or allow from your firewall.

v1.2.1

21 Mar 15:23
33937fd
Compare
Choose a tag to compare
  • Fixed typings
  • Errors from the autoposter will now be caught and logged to the console

v1.2.0

11 Mar 11:36
af94280
Compare
Choose a tag to compare
  • Added days parameter to hasVoted

v1.1.1

11 Mar 11:35
2c419d7
Compare
Choose a tag to compare
  • Added JSDocs and TypeScript
  • Fixed a bug where running the bot using pm2 and discord.js would cause auto-updater to send shard id and count of 0

v1.1.0

11 Mar 11:32
Compare
Choose a tag to compare
  • Added days parameter that was added to the API 👀

First release

11 Mar 11:29
Compare
Choose a tag to compare

First release