55
66[ Javadocs ] : https://docs.botblock.org/JavaBotBlockAPI/
77
8- [ BadgeDownload ] : https://img.shields.io/badge/dynamic/json.svg ?label=Bintray&query=name& style=plastic&url=https%3A%2F%2Fapi.bintray.com%2Fpackages%2Fandre601%2Fmaven%2FJavaBotBlockAPI%2Fversions%2F_latest
8+ [ BadgeDownload ] : https://img.shields.io/bintray/v/andre601/maven/JavaBotBlockAPI ?label=Bintray&style=plastic
99[ Download ] : https://bintray.com/andre601/maven/JavaBotBlockAPI/_latestVersion
1010
1111[ image ] : https://raw.githubusercontent.com/botblock/JavaBotBlockAPI/master/src/main/resources/JavaBotBlockAPI.png
@@ -78,35 +78,35 @@ Remember to use `.build();` at the end to create the class.
7878
7979### Auto Posting
8080JavaBotBlockAPI allows you to post the guild counts automatically every X minutes.
81- To do this, you first need to get an instance of the RequestHandler and then call ` .startAutoPosting (...) ` .
81+ To do this, you first need to get an instance of the PostAction and then call ` .enableAutoPost (...) ` .
8282
8383Here is an example:
8484``` java
85- RequestHandler handler = new RequestHandler ();
85+ PostAction postAction = new PostAction ();
8686
8787// api is the instance of the BotBlockAPI
88- handler . startAutoPosting (jda, api);
88+ postAction . enableAutoPost (jda, api);
8989```
9090The delay in which you post the guild counts is set through the ` .setUpdateInterval(int) ` method in the BotBlockAPI.Builder().
9191
9292### Cancel auto posting
93- To cancel the auto posting just call ` .stopAutoPosting (); ` in the RequestHandler and it should cancel the scheduler.
93+ To cancel the auto posting just call ` .disableAutoPost (); ` in the RequestHandler and it should cancel the scheduler.
9494
9595### Manually posting
9696There are methods that allow you to post the guild counts manually.
97- To Post your guild counts, just call the ` .postGuilds(..., ... ) ` method in the RequestHandler .
97+ To Post your guild counts, just call the ` .postGuilds(...) ` method in the PostAction .
9898
9999``` java
100- RequestHandler handler = new RequestHandler ();
100+ PostAction postAction = new PostAction ();
101101
102102// api is the instance of the BotBlockAPI
103- handler . postGuilds(jda, api);
103+ postAction . postGuilds(jda, api);
104104```
105105
106106## GET methods
107- Since version 2.0.0 of JavaBotBlockAPI can you get certain informations of a bot or the available Botlists on the BotBlock API.
107+ Since version 2.0.0 of JavaBotBlockAPI can you get certain information of a bot or the available Bot lists on the BotBlock API.
108108
109- ### All available Botlists
109+ ### All available Bot lists
110110You can call ` .getBotlists() ` to receive a JSONObject with all available Botlists in the BotBlockAPI.
111111
112112The returned JSONObject could look like this:
@@ -134,8 +134,8 @@ The returned JSONObject could look like this:
134134```
135135
136136### Single Botlist
137- Calling ` .getBotlist(String) ` returns a specific Botlist as JSONObject.
138- For example does ` .getBotlist("lbots.org") ` return the following JSONObject:
137+ Calling ` .getBotlist(..., Site| String) ` returns a specific Botlist as JSONObject.
138+ For example does ` .getBotlist("123456789012345678", " lbots.org") ` return the following JSONObject:
139139``` json
140140{
141141 "api_docs" : " https://lbots.org/api/docs" ,
@@ -179,7 +179,7 @@ The JSONObject can look like this:
179179` name ` , ` owners ` , ` server_count ` and ` invite ` is based on the most common appearances of the data.
180180
181181### Botinfo from all Botlists
182- You can call ` .getBotInfos (...) ` to only receive the bot info from all the Botlists.
182+ You can call ` .getBotListInfo (...) ` to only receive the bot info from all the Botlists.
183183
184184The returned JSONObject can look like this:
185185``` json
@@ -197,7 +197,7 @@ The returned JSONObject can look like this:
197197` {"data"} ` is the JSON that is returned by the provided Botlist meaning it's different for each site.
198198
199199### Botinfo of a single site
200- With ` .getBotInfo (..., String) ` can you receive the info of a specific site.
200+ With ` .getBotListInfo (..., Site| String) ` can you receive the info of a specific site.
201201The returned data depends on the selected site and can be different for each one.
202202
203203### Owners
0 commit comments