Jda: Token is invalid...

Created on 7 Sep 2018  路  1Comment  路  Source: DV8FromTheWorld/JDA

I started to make a bot but when i try to lunch it says this:

javax.security.auth.login.LoginException: The provided token is invalid!
    at net.dv8tion.jda.core.entities.impl.JDAImpl.verifyToken(JDAImpl.java:276)
    at net.dv8tion.jda.core.entities.impl.JDAImpl.verifyToken(JDAImpl.java:214)
    at net.dv8tion.jda.core.entities.impl.JDAImpl.login(JDAImpl.java:161)
    at net.dv8tion.jda.core.JDABuilder.buildAsync(JDABuilder.java:608)
    at BotDiscord.BotDiscord.main(BotDiscord.java:24)

and my code:

public class BotDiscord 
{

    public static void main(String[] args)
    {

        try {
            JDA jda = new JDABuilder(AccountType.BOT).setToken("RDNIZYZXs1vfz5-eG2LQu73QjHP6pqH0").buildAsync();
            System.out.println("Bot ok!");
        } catch (LoginException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}

I have the last version of JDA and i tried a multiple token by https://discordapp.com/developers/applications/

I tried to solve the problem for hours and i didn't found the solution...
I also saw a same Issues but i did'nt found the solution in it....
Thanks for help.

>All comments

The github issue tracker is reserved for feature requests and bug reports. Your issue is neither and should be sorted out inside of our discord server. Go to discord.gg/0hMr4ce0tIl3SLv5 to receive the needed help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefaandevylder picture stefaandevylder  路  5Comments

M4itreG picture M4itreG  路  5Comments

liovy picture liovy  路  3Comments

YukioKeno picture YukioKeno  路  6Comments

andrei1058 picture andrei1058  路  6Comments