Skip to content

v3.0.0: Recode of JavaBotBlockAPI

Compare
Choose a tag to compare
@Andre601 Andre601 released this 16 Nov 13:15
· 742 commits to master since this release
d968fd9

JavaBotBlockAPI was now recoded.
This update is a breaking change. You have to update your code in order to use this new version!

Summary of changes

  • The RequestHandler located under com.andre601.javabotblockapi is now deprecated and will be removed in a future update.
    • The classes GetAction and PostAction were added as a replacement for it and can be found under com.andre601.javabotblockapi.requests
  • All GET methods that used a JDA or ShardManager instance got removed. Supported now are only Long and String. This doesn't affect the POST methods.
  • Two new methods were added to the GET methods: getInvite and getServerCount. They are used to get the OAuth invite of the bot or its server count respectively.
  • The different GET methods should now return null most of the time instead of throwing an error. RatelimitedException and other exceptions for special cases will still appear.
  • Several methods got renamed.
    • getBotInfo and getBotInfos are now called getBotListInfo
    • getAll is now getBotInfo
    • startAutoPosting is now enableAutoPost
    • stopAutoPosting is now disableAutoPost
  • Dependencies were updated to their latest version as of this release.

Please report any errors you encounter with this release! I do not give any guarantee of this release working without issues.

Installation

Gradle

repositories{
    jcenter()
}

dependencies{
    compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '3.0.0'
}

Maven

For maven use this code snippet:

<dependencies>
  <dependency>
    <groupId>com.andre601</groupId>
    <artifactId>JavaBotBlockAPI</artifactId>
    <version>3.0.0</version>
  </dependency>
</dependencies>