Skip to content

Instantly share code, notes, and snippets.

@nkomarn nkomarn/JDA 3.8 Updates Secret
Created Feb 2, 2019

What would you like to do?
An update for the bot tutorial (when using JDA 3.8)!
package techtoolbox.Bot;
import net.dv8tion.jda.core.JDABuilder;
import net.dv8tion.jda.core.OnlineStatus;
import net.dv8tion.jda.core.entities.Game;
public class Bot {
public static String prefix = "~";
public static void main(String[] args) throws LoginException {
JDABuilder builder = new JDABuilder();
builder.setToken("Your token goes here.");
builder.setGame(Game.playing("boring comedy shows."));
// Register listeners
builder.addEventListener(new GuildMessageReceived());;
You can’t perform that action at this time.