v5.0.0-alpha.12
MinnDevelopment
released this
18 May 14:56
·
379 commits
to master
since this release
Overview
This release contains a few tiny changes to improve the codebase, such as:
- FileProxy for downloading images and files from discord (replacing Message.Attachments#download)
- FileUpload for uploading images and files to discord (will be used for Message and Sticker creation)
- Message#getMentions to replace all the mention handling in message and interactions. (Such as Message#getMentionedUsers)
Example Mentions Changes
Old:
List<TextChannel> channels = message.getMentionedChannels(); // only handles TextChannel mentions
List<User> users = message.getMentionedUsers();
New:
List<GuildChannel> channels = message.getMentions().getChannels(); // handles all channel mentions
List<MessageChannel> messageChannels = message.getMentions().getChannels(MessageChannel.class); // filter by class type
List<User> users = message.getMentions().getUsers();
New Features
- Add ImageProxy & FileProxy by @freya022 in #1955
- Add new message types for automod by @MinnDevelopment in #2116
- Add Message#getStartedThread and ThreadChannel#retrieveParentMessage by @Almighty-Satan in #2099
- Added getJumpUrl method to GenericMessageEvent by @mufinlive in #2124
- Add FileUpload class by @MinnDevelopment in #2120
Changes
- Remove manager instance cache by @duncte123 in #2106
- Message interface declutter: Message#getMentions() by @DV8FromTheWorld in #2015
Bug Fixes
- Fix broken context map config by @MinnDevelopment in #2110
- Improve check for GuildVoiceState#declineSpeaker by @MinnDevelopment in #2112
- Remove checks for archive durations by @DerBanko in #2127
- [Bugfix] retrieving public archived threads by @Sanduhr32 in #2115
- Fixed deadlock in JDABuilder#login and JDA#shutdown
Full Changelog: v5.0.0-alpha.11...v5.0.0-alpha.12
Installation
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-alpha.12")
}
Maven
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-alpha.12</version>
</dependency>