Skip to content
Success

Changes

Summary

  1. Add more configurations for JDABuilder (#705) (commit: 4cc724e) (details)
Commit 4cc724e88f22cf673c4b5c0aa645d92857de779f by noreply
Add more configurations for JDABuilder (#705)
* Change core pool size setting to rate-limit handling pool
* Added an option to set the okhttp client used by JDA to allow using a
single okhttp client for all JDA sessions
* Add option for setting rate-limit thread-pool through builders
* Ensure the token in DefaultShardManager is only validated once
* Shutdown JDA when token verification fails
* Change build methods in JDABuilder buildAsync -> build() buildBlocking
-> build().awaitReady()
* Use ForkJoinPool for callbacks by default
* Improve getGuildById performance
(commit: 4cc724e)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/Requester.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/bot/sharding/ThreadPoolProvider.java
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/RateLimiter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/JDA.java (diff)
The file was modifiedREADME.md (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/JDAImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/ratelimit/BotRateLimiter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/bot/sharding/DefaultShardManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/WebSocketClient.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/Request.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/JDABuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/bot/sharding/ShardManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/RestAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/bot/sharding/DefaultShardManagerBuilder.java (diff)
The file was modifiedsrc/examples/java/MessageListenerExample.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/ratelimit/ClientRateLimiter.java (diff)