Skip to content

v5.0.0-beta.3

Compare
Choose a tag to compare
@MinnDevelopment MinnDevelopment released this 16 Jan 15:53
· 229 commits to master since this release
c525f6f

Overview

Small release to fix a few bugs and introduce support for new API features.

GIF Sticker Support

Discord is adding support to create stickers with GIFs in the future. This release already covers support for receiving and creating them in advance of the rollout. Note that it will currently not work since the API for GIF stickers has not yet been deployed, in the meantime you will receive an invalid asset error.

Reverse Audit-Log Iteration

You can now use PaginationAction#reverse on Guild#retrieveAuditLogs. This allows you to iterate from the oldest entry to the newest one.

Removing Options/Subcommands from SlashCommands

You can now use conditional remove operations on SlashCommandData to remove options and slash commands.

Example:

SlashCommandData command = SlashCommandData.fromData(json); // parsing an existing command from json
command.removeOptions(o -> o.isRequired()); // Removing all required options

Note: You still have to pass this updated command to discord using upsertCommand or updateCommands!

New Features

Changes

Bug Fixes

Full Changelog: v5.0.0-beta.2...v5.0.0-beta.3

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.0.0-beta.3")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-beta.3</version> 
</dependency>