Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

DiscordBoats/Boats4J

Open more actions menu

Repository files navigation

DEPRECATED

The website this module is for has shutdown.

Build Status Download

Boats4J

Discord Boats' Official Java API Wrapper

Adding To Your Project

In Gradle:

repositories {
  jcenter()
}
dependencies {
  compile 'xyz.discordboats:Boats4J:1.0.2'
}

In Maven:

 <dependency>
  <groupId>xyz.discordboats</groupId>
  <artifactId>Boats4J</artifactId>
  <version>1.0.2</version>
</dependency>
<repository>
    <id>jcenter</id>
    <name>jcenter-bintray</name>
    <url>http://jcenter.bintray.com</url>
</repository>

Posting Stats

Boats4J can help you automatically post the server count by using the constructor with JDA:

new Boats4J(jda, apiToken);

or

new Boats4J(shardmanager, apiToken, botid) ;

Otherwise

Boats4J bfourj = new Boats4J(ApiToken, botid);
bfourj.postStats(count); // count is a long!

Posting Stats statically

If you do not want to create an instance you can post statically

Boats4J.postStats(count, botid, token);
Boats4J.postStats(jda, token);
Boats4J.postStats(shardmanager, token);

Getting Bot Info

You can easily get information about a bot

BotInfo info = Boats4J.fetchBotInfo(id);

Getting User Info

You can also get information about a user

UserInfo info = Boats4J.fetchUserInfo(id);

About

The official discord.boats API wrapper for Java

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.