Class 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 the nested Builder class.

    After obtaining a Instance of this class can you use the different getter methods to get instances of the Commands, News or Stats classes.

    • Method Detail

      • getCommands

        public Commands getCommands()
        Gets an instance of the Command 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 the News 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 the Stats 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.