Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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();
    }
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #jda
ADD COMMENT
Topic
Name
5+8 =