Skip to content

Releases: DiscordServices/DServices4J

v1.3.1: Fix wrong check in getRemainingTime

29 Jun 17:20
5d63286
Compare
Choose a tag to compare
  • Fix wrong check in getRemainingTime (#4)

v1.3.0: Changes to rate limits

19 Feb 02:56
Compare
Choose a tag to compare

Rate limits have been changed.
The Wrapper will now keep the latest request for 15 seconds before it allows a new request.

v1.2.1: Improvements

17 Feb 16:04
Compare
Choose a tag to compare
  • Improved Javadocs
  • Wrapper now Logs remaining time (minutes) when attempting to perform a request while it's on cooldown.

v1.2.0: Refactored request handling

11 Jan 00:40
Compare
Choose a tag to compare

The way POST requests where handled has changed!
Instead of just throwing the exceptions are those catched now and a warn message together with the stacktrace printed to your terminal using SLF4J.

The RatelimitedException will now mention on what path you have been rate limited by the API.

Download

Gradle

repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.1.1'
}

Maven

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.1.1</version>
  </dependency>
</dependencies>

v1.1.1: Added internal caching

29 May 10:42
Compare
Choose a tag to compare

The wrapper now has internal caching that keeps requests towards specific endpoints for 5 seconds before allowing another request.
This is to work with the rate limit of Discordservices, which is 10 requests/30 seconds (1/3 seconds on average).

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.1.1</version>
  </dependency>
</dependencies>
repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.1.1'
}

v1.1.0: First working release

06 May 11:47
Compare
Choose a tag to compare
  • Fixed invalid path for requests
  • Fixed Commands not being valid JSON
  • Fixed invalid Header for POST requests

All post methods now throw the IOException and RatelimitedException instead of catching them and printing the stack trace.
This means you have to surround the methods using a try-catch.

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.1.0</version>
  </dependency>
</dependencies>
repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.1.0'
}

v1.0.10: rename getCommand() to getCommands()

06 May 08:53
Compare
Choose a tag to compare

The method DServices4J#getCommand() was renamed to DServices4J#getCommands() to match the name of the Commands class.

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.0.10</version>
  </dependency>
</dependencies>
repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.0.10'
}

v1.0.9: Made DServices4J available on jcenter

02 May 15:58
Compare
Choose a tag to compare

DServices4J is now available on Jcenter meaning it's easier to add to your pom.xml or build.gradle.

Other changes:

  • Command was renamed to Commands to match the other classes.
  • Requests won't throw a NullPointer anymore when the API returns an empty body (which it does on successfull calls)
<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.0.9</version>
  </dependency>
</dependencies>
repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.0.9'
}

v1.0.8: Finish Command class

02 May 11:09
Compare
Choose a tag to compare

The Command class was finished.

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://dl.bintray.com/andre601/maven</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.0.8</version>
    <type>pom</type>
  </dependency>
</dependencies>
repositories{
  maven( url = 'https://dl.bintray.com/andre601/maven' )
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.0.8'
}

1.0.7

02 May 09:49
Compare
Choose a tag to compare

First successfull release

<repositories>
  <repository>
    <id>Bintray</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>net.discordservices</groupId>
    <artifactId>DServices4J</artifactId>
    <version>1.0.7</version>
    <type>pom</type>
  </dependency>
</dependencies>
repositories{
  jcenter()
}

dependencies{
  implementation 'net.discordservices:DServices4J:1.0.7'
}