v5.0.0-alpha.10
DV8FromTheWorld
released this
18 Apr 19:26
·
402 commits
to master
since this release
Overview
UserSnowflake
We changed User.fromId
to now return UserSnowflake
instead of User
. This is done to prevent users from attempting code such as User.fromId(123).openPrivateChannel()
which would never work.
With this we also changed some methods to no longer accept raw IDs as long and String. Instead you can now use method(User.fromId(long/String))
, ie. ban(User.fromId(1234))
.
Removed Methods:
- Guild#ban(long/String), Guild#ban(long/String, int), Guild#ban(long/String, int, String)
- Guild#kick(long/String), Guild#kick(long/String, String)
- Guild#unban(long/String)
- Guild#retrieveBanById(long/String)
- Guild#addMember(String, long/String)
- Guild#timeoutForById(long/String, Duration)
- Guild#timeoutUntilById(long/String, TemporalAccessor)
- Guild#removeTimeoutById(long/String)
- Guild#addRoleToMember(long/String, Role)
- Guild#removeRoleFromMember(long/String, Role)
- AuditLogPaginationAction#user(long/String)
New Features
- Add Tags, Default Install Url, Scopes and Permissions to ApplicationInfo by @Xirado in #1936
- Add UserSnowflake and improve User#fromId by @MinnDevelopment in #2065
- Add CommandInteractionPayload#isGuildCommand by @MinnDevelopment in #2091
- Implement pagination for the guild ban list by @RedDaedalus in #2076
- Replace magic embed count number to constant by @Tais993 in #2048
- Add required & autoComplete in Command.Option to equals() & hashCode() by @itsmefox in #2086
- Return MessageReaction for getReactionX methods by @duncte123 in #2026
Changes
- Dependency upgrades by @Alf-Melmac in #1819
- Improve handling of Role#getPosition and canInteract by @MinnDevelopment in #2085
- Add GuildImpl#invalidate by @MinnDevelopment in #2032
- Handle message related events from unexpected channel types by @MinnDevelopment in #2078
- Correct Activity.listening documentation by @markozajc in #2052
- Replace faulty link with value in replyChoices docs by @SIMULATAN in #2073
- transform hardcoded jump url format into a constant by @caneleex in #2087
Bug Fixes
- Fix NPE when cloning guild role with null icon (v5) by @Tais993 in #2063
- Build the User from data in the Interaction if the User was not cached. by @oliver276 in #2060
- Fix possible ClassCastException when removing reactions in threads by @RoanH in #2069
- Fix rate limiter not shutting down if there is an empty bucket at shutdown by @Vankka in #2080
Removed
- Remove mentioning members with ! by @Tais993 in #2081
- A variety of overloads that accepted string/long/User/Member. Refer to UserSnowflake details above.
Full Changelog: v5.0.0-alpha.9...v5.0.0-alpha.10
Installation
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-alpha.10")
}
Maven
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-alpha.10</version>
</dependency>