Releases: jasonlessenich/DIH4JDA
Release v1.6.2 – Bumped to JDA 5.0.0-beta.2
Most important changes
- bumped JDA to
5.0.0-beta.2
- added lombok annotation
What's Changed
- add code of conduct by @DenuxPlays in #95
- Added lombok annotations by @DenuxPlays in #96
- ShadowJar improvements by @DenuxPlays in #98
- excluded opus-java by @DenuxPlays in #99
Full Changelog: 1.6.1...1.6.2
Release v1.6.1 – SmartQueue Fix
Bug fixes
- Fixed a bug where a SlashCommand with more than one Subcommand got queued with no changes.
What's Changed
- Fix useless queue of Subcommands by @DenuxPlays in #91
Full Changelog: 1.6.0...1.6.1
Release v1.6.0 – Major Internal Rework & More!
Most important changes
- updated JDA to
v5.0.0-beta.1
- Relicensed to the Apache License
- Reworked all the internal handeling of commands.
- Replaced the Reflections API with our own.
- Added independent Component Interfaces
- Changed all imports!
- [ALPHA] Added first implementation of command cooldowns.
DIH4JDA and maven central
DIH4JDA is now available via maven central!
See README for more information.
List of all changes
- Release v1.5.5 – App Commands V2,
jda5.0.0-alpha.13
& Major Cleanup by @DynxstyGIT in #33 - Replaced Refletions API by @DenuxPlays in #40
- ClassWalker fix by @DenuxPlays in #41
- Replaced JetBrains annotations by @DenuxPlays in #42
- moved back to reflections (short fix) by @DenuxPlays in #43
- Package checks by @DenuxPlays in #45
- ClassWalker fix by @DenuxPlays in #44
- optimized imports and gradle update by @DenuxPlays in #46
- Updated some java docs by @DenuxPlays in #47
- Dependency update (JDA and gradle) by @DenuxPlays in #51
- IO-Util and JDA update by @DenuxPlays in #52
- Relicensed to the Apache License by @DenuxPlays in #53
- Some more java docs in the util package by @DenuxPlays in #54
- Internal Restructure by @DynxstyGIT in #50
- Refactored & Abstracted
DIH4JDAEvent
s by @DynxstyGIT in #60 - Integrated JDA's command-entities into
SlashCommand
&SlashCommand.Subcommand
& made SmartQueue non-blocking by @DynxstyGIT in #62 - Refactored Internal Command Structure by @DynxstyGIT in #64
- Command Cooldowns by @DynxstyGIT in #65
- Introduce IdMappings by @DynxstyGIT in #68
- Javadocs via GitHub Pages by @DenuxPlays in #70
- Dependabot by @DenuxPlays in #71
- Add missing
package-info.java
Files by @DenuxPlays in #73 - Config Constructor by @DynxstyGIT in #75
- Added support for Localized Commands by @DenuxPlays in #76
- Release v1.6 – Major Restructure, Remove Reflections API, Cooldowns &
jda5.0.0-alpha.23
by @DynxstyGIT in #39 - Add Bot Examples by @DenuxPlays in #74
- Added more Examples by @DenuxPlays in #78
- Exception to Throwable by @DenuxPlays in #79
- Fix classwalker by @DenuxPlays in #80
- Simplified
CommandUtils#equals
by @DenuxPlays in #82 - added missing annotations by @DenuxPlays in #83
- Added missing @SInCE javadoc tag by @DenuxPlays in #85
- Added Pull-Request Template by @DenuxPlays in #87
- Added Issue Templates by @DenuxPlays in #86
- Optimized internal checks by @DenuxPlays in #89
Full Changelog: 1.5.5...1.6.0
Release v1.6.0-beta.3
Most important changes
- Relicensed to the Apache License
- Reworked all the internal handeling of commands.
- Replaced the Reflections API with our own.
- Added independent Component Interfaces
- Changed all imports!
- [ALPHA] Added first implementation of command cooldowns.
DIH4JDA and maven central
DIH4JDA is now available via maven central!
See README for more information.
Please add this to your build.gradle.kts
in order to use this release:
implementation("com.github.DV8FromTheWorld:JDA:88e4c221bd")
List of all changes
- Replaced Refletions API by @DenuxPlays in #40
- ClassWalker fix by @DenuxPlays in #41
- Replaced JetBrains annotations by @DenuxPlays in #42
- moved back to reflections (short fix) by @DenuxPlays in #43
- Package checks by @DenuxPlays in #45
- ClassWalker fix by @DenuxPlays in #44
- optimized imports and gradle update by @DenuxPlays in #46
- Updated some java docs by @DenuxPlays in #47
- Dependency update (JDA and gradle) by @DenuxPlays in #51
- IO-Util and JDA update by @DenuxPlays in #52
- Relicensed to the Apache License by @DenuxPlays in #53
- Some more java docs in the util package by @DenuxPlays in #54
- Internal Restructure by @DynxstyGIT in #50
- Refactored & Abstracted
DIH4JDAEvent
s by @DynxstyGIT in #60 - Integrated JDA's command-entities into
SlashCommand
&SlashCommand.Subcommand
& made SmartQueue non-blocking by @DynxstyGIT in #62 - Refactored Internal Command Structure by @DynxstyGIT in #64
- Command Cooldowns by @DynxstyGIT in #65
- Introduce IdMappings by @DynxstyGIT in #68
- Javadocs via GitHub Pages by @DenuxPlays in #70
- Dependabot by @DenuxPlays in #71
- Add missing
package-info.java
Files by @DenuxPlays in #73 - Config Constructor by @DynxstyGIT in #75
- Added support for Localized Commands by @DenuxPlays in #76
- Release v1.6 – Major Restructure, Remove Reflections API, Cooldowns &
jda5.0.0-alpha.23
by @DynxstyGIT in #39 - Add Bot Examples by @DenuxPlays in #74
- Added more Examples by @DenuxPlays in #78
- Exception to Throwable by @DenuxPlays in #79
- Fix classwalker by @DenuxPlays in #80
- Simplified
CommandUtils#equals
by @DenuxPlays in #82 - added missing annotations by @DenuxPlays in #83
- Added missing @SInCE javadoc tag by @DenuxPlays in #85
- Added Pull-Request Template by @DenuxPlays in #87
- Added Issue Templates by @DenuxPlays in #86
- Optimized internal checks by @DenuxPlays in #89
Full Changelog: 1.5.5...1.6.0-beta.3
Release v1.5.5 – App Commands V2, jda5.0.0-alpha.13 & Major Cleanup
New
- Added
CommandRequirements#requireRoles
- Added
DIH4JDAListenerAdapter#onInvalidRole
- Added
- Added
very earlysupport for Application Command Permissions V2 (this was merged)- Moved to JDA
net.dv8tion:JDA:5.0.0-alpha.13
- Moved to JDA
- Added
DIH4JDABuilder#setGuildSmartQueue
(to improve start-up performance for bots with 300+ servers)
Changes
- Made most
setXXX/addXXX
methods final - Renamed
ExecutableCommand.Type
toRegistrationType
- Renamed
AutoCompleteHandler
toAutocompletable
- Renamed
ComponentHandler#shouldHandleAutoComplete
toComponentHandler#isAutoCompleteHandling
- Renamed
ComponentHandler#enableAutoCompleteHandling
tosetAutoCompleteHandling
- Further Improved Guild Whitelisting
- Renamed
DIH4JDAListenerAdapter#onUserNotAllowed
toDIH4JDAListenerAdapter#onInvalidUser
- Removed
SlashCommand.SubcommandGroup
and replaced it withSlashCommand#setSubcommandGroups(Map<SubcommandGroupData, Set<Subcommand>>)
Installation
This version of DIH4JDA must be used with the following Version of JDA: net.dv8tion:JDA:5.0.0-alpha.13
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.5.5</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url "https://jitpack.io" }
}
Add the dependency
dependencies {
[...]
implementation("com.github.DynxstyGIT:DIH4JDA:1.5.5")
}
Pull Requests
- Release v1.5.5 – App Commands V2,
jda5.0.0-alpha.13
& Major Cleanup by @DynxstyGIT in #33 - Kotlin DSL by @DenuxPlays in #34
- Updated JDA by @DenuxPlays in #35
Full Changelog: 1.5.4...1.5.5
Release v1.5.4 – JDA 5 alpha.12
Changes
- upgraded to
jda5.0.0-alpha.12
- Fixed some javadoc
Full Changelog: 1.5.3...1.5.4
Installation
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.5.4</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url 'https://jitpack.io' }
}
Add the dependency
dependencies {
[...]
implementation 'com.github.DynxstyGIT:DIH4JDA:1.5.4'
}
Release v1.5.3 – Added support for Abstract Classes & fixed some more bugs regarding SmartQueue
Changes
- Added/fixed support for Abstract "parent" classes
- Fixed some bugs regarding SmartQueue
Full Changelog: 1.5.2...1.5.3
Installation
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.5.3</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url 'https://jitpack.io' }
}
Add the dependency
dependencies {
[...]
implementation 'com.github.DynxstyGIT:DIH4JDA:1.5.3'
}
Release v1.5.2 – Fixed Global Command Queuing & Improved Component Handling
Changes
- fixed Global Command Queuing
- Abstracted
ComponentHandler
- Some cleanup
Full Changelog: v1.5...v1.5.1
Installation
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.5.1</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url 'https://jitpack.io' }
}
Add the dependency
dependencies {
[...]
implementation 'com.github.DynxstyGIT:DIH4JDA:1.5.1'
}
Release v1.5 – Command Restructure, Events & More!
New
- Listener methods for custom error/exception messages
-
DIH4JDAListenerAdapter#onCommandException
-
DIH4JDAListenerAdapter#onComponentException
-
DIH4JDAListenerAdapter#onModalException
-
DIH4JDAListenerAdapter#onAutoCompleteException
-
DIH4JDAListenerAdapter#onInsufficientPermissions
-
DIH4JDAListenerAdapter#onUserNotAllowed
-
-
CommandRequirements#requirePermissions
allows to set a set of permissions which are required to execute the command (only works ifExecutableCommand#isGuildCommand
is set to true) -
CommandRequirements#requireUsers
allows to set a set of user ids which are able to execute the command - Set a custom
Executor
usingDIH4JDABuilder#setExecutor
(#26)
Changes
Commands
Slash Commands
-
GuildSlashCommand
&GlobalSlashCommand
→SlashCommand
(define whether a command is global usingSlashCommand#setGuildCommand
)Subcommand
→SlashCommand#Subcommand
SubcommandGroup
→SlashCommand#SubcommandGroup
- Remove Command Privileges (no longer supported by Discord, Privilege updates would fail)
Context Commands
-
GuildContextCommand
&GlobalContextCommand
→ContextCommand
(define whether a command is global usingContextCommand#setGuildCommand
) - Removed
UserContextCommand
&MessageContextCommand
interfaces and replaced them withContextCommand#User
&ContextCommand#Message
Smart Queue
- Smart Queue for Guilds
- Moved Smart Queue functionality into its own class
Other
- Upgraded to Java 11
- Removed
ownerId
field fromDIH4JDA
class
Installation
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.5</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url 'https://jitpack.io' }
}
Add the dependency
dependencies {
[...]
implementation 'com.github.DynxstyGIT:DIH4JDA:1.5'
}
New Contributors
- @DenuxPlays made their first contribution in #26
Full Changelog: 1.4.2...v1.5
Hotfix v1.4.2 – Removed Interaction Handler methods from Context Commands
Changes
- removed Interaction Handler methods from
BaseContextCommand
Full Changelog: v1.4.1...v1.4.2
Installation
Maven
Add the JitPack repository to your pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency
<dependency>
<groupId>com.github.DynxstyGIT</groupId>
<artifactId>DIH4JDA</artifactId>
<version>1.4.2</version>
</dependency>
Gradle
Add the JitPack repository to your build.gradle
repositories {
[...]
maven { url 'https://jitpack.io' }
}
Add the dependency
dependencies {
[...]
implementation 'com.github.DynxstyGIT:DIH4JDA:1.4.2'
}