Skip to content

Releases: jasonlessenich/DIH4JDA

Release v1.6.2 – Bumped to JDA 5.0.0-beta.2

08 Dec 14:28
14daef4
Compare
Choose a tag to compare

Most important changes

What's Changed

Full Changelog: 1.6.1...1.6.2

Release v1.6.1 – SmartQueue Fix

28 Nov 16:37
cdc4469
Compare
Choose a tag to compare

Bug fixes

  • Fixed a bug where a SlashCommand with more than one Subcommand got queued with no changes.

What's Changed

Full Changelog: 1.6.0...1.6.1

Release v1.6.0 – Major Internal Rework & More!

27 Nov 20:41
81319c7
Compare
Choose a tag to compare

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

Full Changelog: 1.5.5...1.6.0

Release v1.6.0-beta.3

23 Nov 17:28
e979af9
Compare
Choose a tag to compare
Release v1.6.0-beta.3 Pre-release
Pre-release

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

Full Changelog: 1.5.5...1.6.0-beta.3

Release v1.5.5 – App Commands V2, jda5.0.0-alpha.13 & Major Cleanup

28 Jun 16:41
Compare
Choose a tag to compare

New

Changes

  • Made most setXXX/addXXX methods final
  • Renamed ExecutableCommand.Type to RegistrationType
  • Renamed AutoCompleteHandler to Autocompletable
  • Renamed ComponentHandler#shouldHandleAutoComplete to ComponentHandler#isAutoCompleteHandling
  • Renamed ComponentHandler#enableAutoCompleteHandling to setAutoCompleteHandling
  • Further Improved Guild Whitelisting
  • Renamed DIH4JDAListenerAdapter#onUserNotAllowed to DIH4JDAListenerAdapter#onInvalidUser
  • Removed SlashCommand.SubcommandGroup and replaced it with SlashCommand#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

18 May 19:42
Compare
Choose a tag to compare

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

15 May 11:02
Compare
Choose a tag to compare

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

13 May 19:26
Compare
Choose a tag to compare

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!

09 May 21:25
Compare
Choose a tag to compare

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 if ExecutableCommand#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 using DIH4JDABuilder#setExecutor (#26)

Changes

Commands

Slash Commands

  • GuildSlashCommand & GlobalSlashCommandSlashCommand (define whether a command is global using SlashCommand#setGuildCommand)
    • SubcommandSlashCommand#Subcommand
    • SubcommandGroupSlashCommand#SubcommandGroup
  • Remove Command Privileges (no longer supported by Discord, Privilege updates would fail)

Context Commands

  • GuildContextCommand & GlobalContextCommandContextCommand (define whether a command is global using ContextCommand#setGuildCommand)
  • Removed UserContextCommand & MessageContextCommand interfaces and replaced them with ContextCommand#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 from DIH4JDA 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

Full Changelog: 1.4.2...v1.5

Hotfix v1.4.2 – Removed Interaction Handler methods from Context Commands

27 Apr 22:00
Compare
Choose a tag to compare

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'
}