discord jda

Solutions on MaxInterview for discord jda by the best coders in the world

showing results for - "discord jda"
Roman
10 Aug 2020
1public class DiscordBot {
2  public static void main(String[] args) {
3    JDABuilder jdaBuilder = JDABuilder.createDefault("TOKEN").setActivity(Activity.playing("Grepper"));
4    JDA jda = null;
5    try {
6        jdaBuilder.build();
7    } catch (LoginException e) {
8         e.printStackTrace();
9    }
10    try {
11        jda.awaitReady();
12    } catch (InterruptedException e) {
13        e.printStackTrace();
14    }
15  }
16}