Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
112 lines (90 sloc) 3.5 KB
title position redirect_from
Welcome
1
/wiki/

Introduction

Welcome to the Javacord wiki! You can find all important topics on the right side.

Download / Installation

The recommended way to get Javacord is to use a build manager, like Gradle or Maven.
If you are not familiar with build managers, you can follow on of the setup guides or download Javacord directly from GitHub.

Javacord Dependency

Gradle

repositories { mavenCentral() }
dependencies { implementation 'org.javacord:javacord:${latest-version}' }

Show Gradle snapshot dependency

Snapshots are automatically deployed from the development branch.

{% highlight groovy %} repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { implementation 'org.javacord:javacord:${latest-snapshot-version}' } {% endhighlight %}

Maven

<dependency>
    <groupId>org.javacord</groupId>
    <artifactId>javacord</artifactId>
    <version>${latest-version}</version>
    <type>pom</type>
</dependency>

Show Maven snapshot dependency

Snapshots are automatically deployed from the development branch.

{% highlight xml %} snapshots-repo https://oss.sonatype.org/content/repositories/snapshots/ {% endhighlight %} {% highlight xml %} org.javacord javacord ${latest-snapshot-version} pom {% endhighlight %}

Optional Logger Dependency

Any Log4j-2-compatible logging framework can be used to provide a more sophisticated logging experience with being able to configure log format, log targets (console, file, database, Discord direct message, ...), log levels per class, and much more.

For example, Log4j Core in Gradle

dependencies { runtimeOnly 'org.apache.logging.log4j:log4j-core:2.11.0' }

Take a look at the Logger Configuration wiki article for further information.

IDE Setup

If you've never used Gradle or Maven before, you should take a look at the setup tutorial:

Support

Javacord's Discord community is an excellent resource if you have questions about the library.

Examples

There's an example bot written with Javacord: Javacord Example Bot

You can’t perform that action at this time.