JDA strives to provide a clean and full wrapping of the Discord REST api and its Websocket-Events for Java. This library is a helpful tool that provides the functionality to create a discord bot in java. Discord is currently prohibiting the creation and usage of automated client accounts (AccountType.CLIENT). We have officially dropped support for client login as of version 4.2.0! Note that JDA is not a good tool to build a custom discord client as it loads all servers/guilds on startup, unlike a client which does this via lazy loading instead. If you need a bot, use a bot account from the Application Dashboard. Creating the JDA Object is done via the JDABuilder class. After setting the token and other options via setters, the JDA Object is then created by calling the build() method. When build() returns, JDA might not have finished starting up. However, you can use await ready() on the JDA object to ensure that the entire cache is loaded before proceeding.

Features

  • Discord allows Bot-accounts to share load across sessions by limiting them to a fraction of the total connected Guilds/Servers of the bot
  • When an entity is updated through its manager, they will send a request to the Discord API which will update the state of the entity
  • Discord may request that a client (the JDA session) invalidates its entire cache
  • The snapshot builds are only available via JitPack and require adding the JitPack resolver
  • JDA is using SLF4J to log its messages
  • JDA currently provides a fallback Logger in case that no SLF4J implementation is present

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow JDA

JDA Web Site

Other Useful Business Software
Ship AI Apps Faster with Vertex AI Icon
Ship AI Apps Faster with Vertex AI

Go from idea to deployed AI app without managing infrastructure. Vertex AI offers one platform for the entire AI development lifecycle.

Ship AI apps and features faster with Vertex AI—your end-to-end AI platform. Access Gemini 3 and 200+ foundation models, fine-tune for your needs, and deploy with enterprise-grade MLOps. Build chatbots, agents, or custom models. New customers get $300 in free credit.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JDA!

Additional Project Details

Programming Language

Java

Related Categories

Java VoIP Software, Java Discord Bots, Java Discord Clients

Registered

2022-03-16