Class News


  • public class News
    extends Object
    Class used to post News to the bot page on Discordservices.
    • Method Detail

      • postNews

        public void postNews​(String title,
                             String message)
        Posts news to the bot page.
        The posts made with this method will never be seen as errors. Use postNews(String, String, true) if you want to send an Error message.

        Rate Limits

        By default will the Wrapper only perform one request per 15 seconds per endpoint.
        If however, the Request either isn't successful or gets rate limited will those errors be logged in your terminal.

        Parameters:
        title - The title of the News post.
        message - The message of the news.
      • postNews

        public void postNews​(String title,
                             String message,
                             boolean isError)
        Posts news to the bot page.

        Rate Limits

        By default will the Wrapper only perform one request per 15 seconds per endpoint.
        If however, the Request either isn't successful or gets rate limited will those errors be logged in your terminal.

        Parameters:
        title - The title of the News post.
        message - The message of the news.
        isError - If the post should be treated as an error/issue.