Package net.discordservices.dservices4j
Class DServices4J
- java.lang.Object
-
- net.discordservices.dservices4j.DServices4J
-
public class DServices4J extends Object
Main class used for the Java Wrapper.
To perform any actions with this Wrapper will you need to get an instance of this class using thenested Builder class
.After obtaining a Instance of this class can you use the different getter methods to get instances of the
Commands
,News
orStats
classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DServices4J.Builder
Builder class for easier setup of theDServices4J
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commands
getCommands()
Gets an instance of theCommand
class, which is used to submit the commands a bot has to the Discordservices API.News
getNews()
Gets an instance of theNews
class, which is used to post announcements about your bot.Stats
getStats()
Gets an instance of theStats
class, which is used to submit statistics like server and shard count to the Discordservices API.
-
-
-
Method Detail
-
getCommands
public Commands getCommands()
Gets an instance of theCommand
class, which is used to submit the commands a bot has to the Discordservices API.This method is used to create instances of the Command class, or load it, when already created.
Example
DServices4J dservices = new DServices4J(API_TOKEN, ID); Command command = dservices.getCommands();
- Returns:
- Usable instance of the
Command
class.
-
getNews
public News getNews()
Gets an instance of theNews
class, which is used to post announcements about your bot.This method is used to create an instance of the News class, or load it, when already created.
Example
DServices4J dservices = new DServices4J(API_TOKEN, ID); News news = dservices.getNews();
- Returns:
- Usable instance of the
Stats
class.
-
getStats
public Stats getStats()
Gets an instance of theStats
class, which is used to submit statistics like server and shard count to the Discordservices API.This method is used to create an instance of the Stats class, or load it, when already created.
Example
DServices4J dservices = new DServices4J(API_TOKEN, ID); Stats stats = dservices.getStats();
- Returns:
- Usable instance of the
Stats
class.
-
-