Skip to content

v1.1.1: Added internal caching

Compare
Choose a tag to compare
@Andre601 Andre601 released this 29 May 10:42

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'
}