1818
1919package org .botblock .javabotblockapi .requests ;
2020
21+ import org .botblock .javabotblockapi .core .JavaBotBlockAPIInfo ;
2122import org .botblock .javabotblockapi .core .Site ;
2223import org .botblock .javabotblockapi .core .CheckUtil ;
2324import org .botblock .javabotblockapi .core .exceptions .RateLimitedException ;
@@ -53,11 +54,13 @@ public class GetBotAction{
5354 * <li>User-Agent: {@code "JavaBotBlockAPI-0000/API_VERSION (Unknown; +https://jbba.dev) DBots/{id}"}</li>
5455 * </ul>
5556 *
57+ * <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
58+ * <ul>
59+ * <li>{@link java.lang.NullPointerException NullPointerException} - When the provided id is empty.</li>
60+ * </ul>
61+ *
5662 * @param id
5763 * The id of the bot. This is required for the internal User-Agent.
58- *
59- * @throws java.lang.NullPointerException
60- * When the provided id is empty.
6164 */
6265 public GetBotAction (@ Nonnull String id ){
6366 this (false , id );
@@ -72,17 +75,22 @@ public GetBotAction(@Nonnull String id){
7275 * <li>User-Agent: {@code "JavaBotBlockAPI-0000/API_VERSION (Unknown; +https://jbba.dev) DBots/{id}"}</li>
7376 * </ul>
7477 *
78+ * <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
79+ * <ul>
80+ * <li>{@link java.lang.NullPointerException NullPointerException} - When the provided id is empty.</li>
81+ * </ul>
82+ *
7583 * @param disableCache
7684 * If the cache should be disabled.
7785 * <br>{@code true} means the cache is <b>disabled</b>.
7886 * @param id
7987 * The id of the bot. This is required for the internal User-Agent.
80- *
81- * @throws java.lang.NullPointerException
82- * When the provided id is empty.
8388 */
8489 public GetBotAction (boolean disableCache , @ Nonnull String id ){
85- this (disableCache , "JavaBotBlockAPI-0000/API_VERSION (Unknown; +https://jbba.dev) DBots/{id}" , id );
90+ this (disableCache , String .format (
91+ "JavaBotBlockAPI-0000/%s (Unknown; +https://jbba.dev) DBots/{id}" ,
92+ JavaBotBlockAPIInfo .VERSION
93+ ), id );
8694 }
8795
8896 /**
@@ -104,9 +112,6 @@ public GetBotAction(boolean disableCache, @Nonnull String id){
104112 * The Name that should be used as User-Agent.
105113 * @param id
106114 * The id of the bot. This is required for the internal User-Agent.
107- *
108- * @throws java.lang.NullPointerException
109- * When the provided userAgent or id is empty.
110115 */
111116 public GetBotAction (boolean disableCache , @ Nonnull String userAgent , @ Nonnull String id ){
112117 CheckUtil .notEmpty (userAgent , "UserAgent" );
0 commit comments