简单JDA机器人上未解决的编译问题

时间:2020-05-15 02:56:59

标签: java discord discord-jda

我了解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("");

    }

}

0 个答案:

没有答案