2.3.0-alpha.2
Overview
This is a follow-up release bringing in some bug fixes and minor changes.
1) New Features
-
Parameter names will be automatically transformed into snake_case, e.g.
int delDays
->del_days
#67 -
You can now use
EmbedDTO#injectFormat(Object...)
to format all fields of an EmbedDTO #69 -
Added
JDACommandsSlashBuilder#enableHelp(boolean)
. If set tofalse
no help commands will be auto generated. Default value istrue
, which also represents the behavior prior to this update. -
StateSection
now has methods to clear or remove entries. Furthermore you can now define a time to live:StateSection section = new StateSection(1, TimeUnit.MINUTES);
2) Changes
-
The
EmbedCache
no automatically loads all embeds when the object gets created #58. Thus:-
EmbedCache#loadEmbedsToCache()
got deprecated -
EmbedCache#loadEmbeds()
got introduced as an alternative which has the same functionality
-
-
Deleting ephemeral messages will replace the message with deleted and will remove all embeds or components instead of throwing an exception #71
3) Bug Fixes
-
Illegal values for SlashCommandData will no longer result in a crash #68
-
fixed that String arguments weren't concatenated #72
-
The type adapters for Integer and Long can now also handle floating point numbers
-
The contextual prefix is now also used in error embeds
-
fixed that Buttons didn't always have the correct order in an ActionRow
4) Internal changes
N/A
You can find the complete changelog here.
JavaDoc for the new classes is currently not available but the wiki will be updated soon:tm:
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Kaktushose</groupId>
<artifactId>jda-commands</artifactId>
<version>v2.3.0-alpha.2</version>
</dependency>
Gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Kaktushose:jda-commands:v2.3.0-alpha.2'
}