Search in sources :

Example 1 with DiscordClient

use of discord4j.core.DiscordClient in project lavaplayer by sedmelluq.

the class Main method main.

public static void main(String[] args) {
    DiscordClient client = new DiscordClientBuilder(System.getProperty("botToken")).build();
    new Main().registerListeners(client.getEventDispatcher());
    client.login().block();
}
Also used : DiscordClient(discord4j.core.DiscordClient) DiscordClientBuilder(discord4j.core.DiscordClientBuilder)

Aggregations

DiscordClient (discord4j.core.DiscordClient)1 DiscordClientBuilder (discord4j.core.DiscordClientBuilder)1