Releases: DiscordServices/DServices4J
v1.3.1: Fix wrong check in getRemainingTime
v1.3.0: Changes to rate limits
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
- 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
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
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
- 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()
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
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
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
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'
}