v3.0.0: Recode of JavaBotBlockAPI
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
andPostAction
were added as a replacement for it and can be found undercom.andre601.javabotblockapi.requests
- The classes
- 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
andgetServerCount
. 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
andgetBotInfos
are now calledgetBotListInfo
getAll
is nowgetBotInfo
startAutoPosting
is nowenableAutoPost
stopAutoPosting
is nowdisableAutoPost
- 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>