Wed. Nov 6th, 2019

Host your Website

Read and learn

FatCow Plan for $3.15/mo. only

How to Create a Java Discord Bot (JDA 3.6.0+) | Initial Setup & Hello World

1 min read



**Join the discord server for questions and/or help: https://discord.gg/EYKxkce **

This tutorial has been verified to work up through version 3.8.0. This version number will continue to be checked as new versions of JDA are released and be marked outdated when it no longer will work.

0:15 Set up a Bot User
3:50 Installing Java
4:56 Installing Eclipse
6:11 Downloading JDA
8:40 Writing the Bot

Learn Java: https://www.udemy.com/java-tutorial/
Discord Developers: https://discordapp.com/developers/docs/intro
Permissions Calculator: https://discordapi.com/permissions.html
Get Java: https://www.oracle.com/technetwork/java/javase/downloads/Index.html
Eclipse: https://www.eclipse.org/downloads/
JDA Github: https://github.com/DV8FromTheWorld/JDA/releases
JDA Documentation: http://home.dv8tion.net:8080/job/JDA/javadoc/
JDA Backup Documentation: https://www.kantenkugel.com/jdadocs/overview-summary.html

27 thoughts on “How to Create a Java Discord Bot (JDA 3.6.0+) | Initial Setup & Hello World

  1. When i run program i see this on console
    :
    Java Native Access (JNA) API Version 4.4.0

    Version: 3.8.3_464

    Native: 5.1.0 (74e8f8e397c43487738c5c1f1363498b)

    Prefix: win32-x86-64

    @CodeForge

  2. Main imports:
    import net.dv8tion.jda.core.AccountType;

    import net.dv8tion.jda.core.JDA;

    import net.dv8tion.jda.core.JDABuilder;

    MyEventListener imports:
    import net.dv8tion.jda.core.entities.*;

    import net.dv8tion.jda.core.events.message.MessageReceivedEvent;

    import net.dv8tion.jda.core.hooks.ListenerAdapter;

  3. "Exception in thread "main" java.lang.NoClassDefFoundError: net/dv8tion/jda/core/JDABuilder
    at Main.main(Main.java:8)
    Caused by: java.lang.ClassNotFoundException: net.dv8tion.jda.core.JDABuilder
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    … 1 more" can someone help please?

  4. I get SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". error… I tried everything but almost every tutorial to fix this is for maven… Pls help asap…

  5. Very thorough and good tutorial. And thank you for actually explaining how to properly import the JDA into the project – no one else, for some stupid reason, does that.

  6. I have everything typed the exact same, but my bot won't receive or send messages, I've tried adding a "System.out.println(content)" in my onMessageReceived class, but it doesn't print anything to the console. Any ideas?

    Thanks in advance

  7. Hey just a quick question, is the learn java in the description teach me how to do all this, or does it give me a brief tutorial of java so then I understand it and I can use advanced commands in my bot?

    please respond A.S.A.P!

    -gtech

Comments are closed.

Copyright © All rights reserved. | Newsphere by AF themes.