我了解Java的基础知识,并且正在尝试编写一个不和谐的bot,我刚开始并遇到以下错误:
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("");
}
}