Answers for "jda discord java"

1

discord jda

public class DiscordBot {
  public static void main(String[] args) {
    JDABuilder jdaBuilder = JDABuilder.createDefault("TOKEN").setActivity(Activity.playing("Grepper"));
    JDA jda = null;
    try {
        jdaBuilder.build();
    } catch (LoginException e) {
         e.printStackTrace();
    }
    try {
        jda.awaitReady();
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
  }
}
Posted by: Guest on September-09-2021
0

jda documentation discord

dependencies {
    compile 'net.dv8tion:JDA:VERSION'
}

repositories {
    mavenCentral() // for transitive dependencies
    maven {
      name 'm2-dv8tion'
      url 'https://m2.dv8tion.net/releases'
    }
}
Posted by: Guest on April-21-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language