You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi" target="classFrame">BotBlockAPI.Builder</a></li>
17
17
<li><ahref="com/andre601/javabotblockapi/exceptions/RatelimitedException.html" title="class in com.andre601.javabotblockapi.exceptions" target="classFrame">RatelimitedException</a></li>
18
18
<li><ahref="com/andre601/javabotblockapi/RequestHandler.html" title="class in com.andre601.javabotblockapi" target="classFrame">RequestHandler</a></li>
19
+
<li><ahref="com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi" target="classFrame">Site</a></li>
<li><ahref="com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></li>
17
17
<li><ahref="com/andre601/javabotblockapi/exceptions/RatelimitedException.html" title="class in com.andre601.javabotblockapi.exceptions">RatelimitedException</a></li>
18
18
<li><ahref="com/andre601/javabotblockapi/RequestHandler.html" title="class in com.andre601.javabotblockapi">RequestHandler</a></li>
19
+
<li><ahref="com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi">Site</a></li>
<tdclass="colFirst"><code><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></code></td>
157
+
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html#addAuthToken-com.andre601.javabotblockapi.Site-java.lang.String-">addAuthToken</a></span>(@NotNull <ahref="../../../com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi">Site</a> site,
158
+
@NotNull java.lang.String token)</code>
159
+
<divclass="block">Adds the provided <ahref="../../../com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi"><code>Site name</code></a> and token to the Map.</div>
160
+
</td>
161
+
</tr>
162
+
<trid="i1" class="rowColor">
163
+
<tdclass="colFirst"><code><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></code></td>
<divclass="block">Adds the provided Site name and token to the Map.</div>
160
167
</td>
161
168
</tr>
162
-
<trid="i1" class="rowColor">
169
+
<trid="i2" class="altColor">
163
170
<tdclass="colFirst"><code><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.html" title="class in com.andre601.javabotblockapi">BotBlockAPI</a></code></td>
<divclass="block">Builds the instance of <ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.html" title="class in com.andre601.javabotblockapi"><code>BotBlockAPI</code></a>.</div>
166
173
</td>
167
174
</tr>
168
-
<trid="i2" class="altColor">
175
+
<trid="i3" class="rowColor">
169
176
<tdclass="colFirst"><code><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></code></td>
<divclass="block">Sets the provided Map as the new Map.</div>
172
179
</td>
173
180
</tr>
174
-
<trid="i3" class="rowColor">
181
+
<trid="i4" class="altColor">
175
182
<tdclass="colFirst"><code><ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></code></td>
<pre>public <ahref="../../../com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a> addAuthToken(@NotNull
234
+
@NotNull <ahref="../../../com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi">Site</a> site,
235
+
@NotNull
236
+
@NotNull java.lang.String token)</pre>
237
+
<divclass="block">Adds the provided <ahref="../../../com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi"><code>Site name</code></a> and token to the Map.
238
+
<br>Entries with the same key will be overwritten.</div>
<dd><code>site</code> - The <ahref="../../../com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi"><code>Site</code></a> to get the name from.</dd>
242
+
<dd><code>token</code> - The API token from the corresponding botlist. May not be null or empty.
243
+
<br>You may receive the API token from the botlist.</dd>
244
+
<dt><spanclass="returnLabel">Returns:</span></dt>
245
+
<dd>The Builder after the site and token were set. Useful for chaining.</dd>
246
+
<dt><spanclass="throwsLabel">Throws:</span></dt>
247
+
<dd><code>java.lang.NullPointerException</code> - When the provided token is empty (<code>""</code>).</dd>
0 commit comments