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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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