Answers for "discord jda"

0

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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language