I know the basics of java and am trying to code a discord bot, I have just started and am getting these errors:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
JDA cannot be resolved to a type
JDABuilder cannot be resolved to a type
JDABuilder cannot be resolved to a type
AccountType cannot be resolved to a variable
package PigeonBot;
import net.dv8tion.jda.api.AccountType;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
public class Main {
public static JDA jda;
public static void main (String args[]) throws loginException
{
jda = new JDABuilder(AccountType.BOT).setToken("");
}
}