Package net.discordservices.dservices4j
Class News
- java.lang.Object
-
- net.discordservices.dservices4j.News
-
public class News extends Object
Class used to post News to the bot page on Discordservices.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postNews(String title, String message)
Posts news to the bot page.void
postNews(String title, String message, boolean isError)
Posts news to the bot page.
-
-
-
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. UsepostNews(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.
-
-