Release v1.4 – Interaction & AutoComplete Handlers & some Cleanup
Changes
- NEW: Easily handle Interactions using the new Interaction & AutoComplete Handlers.
- Added
AutoCompleteHandler (ExecutableCommand#enableAutoCompleteHandling)
- Added
ButtonHandler (ExecutableCommand#handleButtonIds(String...))
- Added
SelectMenuHandler (ExecutableCommand#handleSelectMenuIds(String...))
- Added
ModalHandler (ExecutableCommand#handleModalIds(String...))
- Added
ComponentIdBuilder
- Added
- The
SlashCommand
interface has been replaced byExecutableCommand#handleSlashCommand(SlashCommandInteractionEvent)
- Major Cleanup
Full Changelog: v1.3...v1.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.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.4'
}