v5.0.0-alpha.22
Overview
This is most likely the final alpha release. The current plan is to merge a few more breaking changes, and address some remaining TODOs before finally bumping to beta! Stay tuned.
Implement new select menus (#2287)
Discord has introduced new select menu component types, which support selecting mentionable entities like User
/Role
/Channel
. With this release we are introducing a small breaking change to the SelectMenu
type:
StringSelectMenu
is the old select menu, used for custom string choicesEntitySelectMenu
is the new select menu, used for mentionable entities
And you use the StringSelectInteractionEvent
and EntitySelectInteractionEvent
to handle them.
Ability to disable/pause invites of a guild (#2222)
Recently, Discord added a new moderation feature to pause the invites of a guild, including vanity invites. This is usually done using the Pause Invites button in the guild settings.
You can now do this using the GuildManager
via setInvitesDisabled(true)
.
Scheduled Events (#2047)
This is rather late, but you can now handle and create scheduled events. To create a scheduled event you can use one of the createScheduledEvent
overloads in Guild
:
- Use
createScheduledEvent(name, channel, time)
to create a local event to take place in a specific voice or stage channel - Use
createScheduledEvent(name, location, startTime, endTime)
to create an external event, such as a concert or similar
New Features
- Add GuildManager#setFeatures by @MinnDevelopment in #2222
- Add support for guild scheduled events v2 by @Mitmocc in #2047
- Implement new select menus by @MinnDevelopment in #2287
Changes
- Retain sort order for ThreadChannel#getAppliedTags by @MinnDevelopment in #2278
- FileProxy: additional checks on existing files by @freya022 in #2293
- Put "options" between command path and options, same for choices by @freya022 in #2261
- Move ModalInteraction into correct package by @Xirado in #2282
- Improve
toString
methods by @freya022 in #2273 - Check for empty token in AuthorizationConfig, instead of JDAImpl by @freya022 in #2230
- Improve channel update handling by @MinnDevelopment in #2255
Bug Fixes
- Make ForumTag extend ForumTagSnowflake by @MinnDevelopment in #2276
- Handle emoji_id sometimes being 0 instead of null by @MinnDevelopment in #2279
Full Changelog: v5.0.0-alpha.21...v5.0.0-alpha.22
Installation
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-alpha.22")
}
Maven
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-alpha.22</version>
</dependency>