'import net.dv8tion.jda.core.AccountType; not working on Intellij-idea

I am trying to make my first discord bot using discord and my code does not want to work. JDABuilder class is working after I added an external library for it. But AccountType is not working.[enter image description here.

import net.dv8tion.jda.core.AccountType;
import net.dv8tion.jda.core.JDABuilder;

public class Core {
    public static void main(String[] args){
        JDABuilder builder = new 
        JDABuilder(AccountType.BOT);
        string token = "Token was here";
        builder.setToken(token);
    }
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source