Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.17 - autoclosed #251

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 18, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
net.dv8tion:JDA 5.0.0-alpha.9 -> 5.0.0-alpha.17 age adoption passing confidence

Release Notes

DV8FromTheWorld/JDA

v5.0.0-alpha.17

Compare Source

Fixes some issues regarding the handling of file attachments on messages.

  • Fix to properly clean up resources in MessageAction, which would otherwise cause unwanted warnings
  • Fix issue with interaction replies that make use of files
  • Fix issue with retainFiles on interaction message edits
Installation
Gradle
repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.0.0-alpha.17")
}
Maven
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.17</version> 
</dependency>

v5.0.0-alpha.16

Compare Source

This fixes an issue where IMessageEditCallback#editMessage would not properly send the request to edit the message, and instead defer the edit.

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.16</version> 
</dependency>

v5.0.0-alpha.15

Compare Source

This fixes the ClassCastException when a voice channel updated.

Installation
Gradle
repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.0.0-alpha.15")
}
Maven
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.15</version> 
</dependency>

v5.0.0-alpha.14

Compare Source

Overview

Breaking changes and text messages in voice channels!

Text in Voice (#​2072)

This release introduces the long awaited Text in Voice feature. Now you can use all your message related features in voice channels as well! Automatically works with interactions, messages, reactions, and all other features you could want!

Command Localization (#​2090)

Using command localization, you can provide customized translations for all your commands. Check the example: LocalizationExample

API v10 (#​2165)

Since the v9 API will be discontinued at the end of 2022, we have upgraded to the newer version 10. This comes with a few breaking changes:

  • All edit requests with addFile calls (such as message.editMessage(...).addFile(...)), will now remove all current attachments on the message. To retain existing attachments, you are now required to also use retainFiles(...) with the existing attachments on the message.
  • The introduction of GatewayIntent.MESSAGE_CONTENT. In order to use certain user-generated content in messages, you will now be required to explicitly enable this privileged intent. This includes:
    • getContentRaw, getContentDisplay, getContentStripped, and getMentions().getCustomEmojis()
    • getActionRows, and getButtons
    • getAttachments
    • getEmbeds

You will be presented with a warning, if you try using any of those methods without having the required intent enabled.

Attempting to access message content without GatewayIntent.MESSAGE_CONTENT.
Discord now requires to explicitly enable access to this using the MESSAGE_CONTENT intent.
Useful resources to learn more:
	- https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Privileged-Intent-FAQ
	- https://jda.wiki/using-jda/gateway-intents-and-member-cache-policy/
	- https://jda.wiki/using-jda/troubleshooting/#im-getting-closecode4014-disallowed-intents
Or suppress this warning if this is intentional with Message.suppressContentIntentWarning()
Channel Unions (#​2138)

We had a lot of repeated concrete type specializations, such as getTextChannel(), all over library. To address this duplication and to make the interface more consitent, we are introducing the concept of channel unions.

These channel unions, are abstracted types, which provide the same features as their respective name would suggest, while also allowing simple specialization using conversion methods.

An example union would be MessageChannelUnion, which is used by Message.getChannel(). This type provides all the methods a normal MessageChannel would, but also allows you to convert it to a more concrete type:

public void onMessageReceived(MessageReceivedEvent event) {
  MessageChannelUnion channel = event.getChannel();
  // Use normal message channel features
  channel.sendMessage("Hello, I received your message!").queue();
  // Specialized handling on concrete types
  if (channel.getType() == ChannelType.VOICE) {
    VoiceChannel vc = channel.asVoiceChannel(); // easy type conversion, just like casting, but with clear type information
    vc.getGuild().getAudioManager().openAudioConnection(vc);
  }
}

New Features

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.0.0-alpha.13...v5.0.0-alpha.14

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.14</version> 
</dependency>

v5.0.0-alpha.13

Compare Source

Overview

In this release, we have taken some time to rework the handling of Emoji and Stickers! This comes with a lot of breaking changes.

Guild Emote Renamed (#​2117)

Previously, all custom emoji were called Emote in JDA. This has been changed to be more consistent with the API naming convention of Custom Emoji. In that sense, we renamed Emote to RichCustomEmoji and made various changes all over the API to rename all occurrences of Emote with Emoji.

This also comes with some compatibility improvements! With this change, we now have a uniform representation of all emoji in the library. Every emoji now implements the Emoji interface and can be used interchangeably as such. For instance, the reactions used to have a specific type called ReactionEmote, which is now just replaced with Emoji allowing you to use them in buttons!

public void onMessageReactionAdd(MessageReactionAddEvent event) {
  event.getChannel().sendMessage("User reacted")
    .setActionRow(Button.primary("buttonid", event.getEmoji())) // <- replacement for getReactionEmote()
    .queue();
}
Stickers (#​2104)

In addition to the changes for emoji, we now have a full support for stickers! Bots can send up to 3 guild stickers in a message (but not in interactions). However, this is limited to only stickers from the same guild, so likely not useful to most bots.

This comes with support for:

  • Creating/Updating/Deleting guild stickers
  • Getting and sending stickers with messages
  • Access to nitro sticker packs (not sending though)
  • Full sticker event support
ChunkingFilter Breaking Change (#​2053)

Previously, when you did setChunkingFilter(ChunkingFilter.ALL), we would always cache every member of the guild for the full runtime. This has been changed now, allowing you to further configure the member cache policy in addition to chunking. Now, to chunk and cache all members of a guild, you can use setChunkingFilter(ChunkingFilter.ALL).setMemberCachePolicy(MemberCachePolicy.ALL).

This is a breaking change and affects anyone using ChunkingFilter.

Command Permissions (#​2113)

Discord made breaking changes to command permissions (aka Privileges). This means you can no longer configure the privileges of a command on a guild, without using oauth. Consequently, we updated our interface with breaking changes to address this.

Instead of using setDefaultEnabled(..) on your command and configuring a whitelist/blacklist of roles and users, you now have the ability to configure allowed permissions using setDefaultPermissions(...) and you can tell discord that a command is guild only with setGuildOnly(true).

However, you cannot configure this for individual subcommands, due to the way discord designed them.

Check out the SlashBotExample for some useful examples on how this works!

New Features

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.0.0-alpha.12...v5.0.0-alpha.13

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.13</version> 
</dependency>

v5.0.0-alpha.12

Compare Source

Overview

This release contains a few tiny changes to improve the codebase, such as:

  • FileProxy for downloading images and files from discord (replacing Message.Attachments#download)
  • FileUpload for uploading images and files to discord (will be used for Message and Sticker creation)
  • Message#getMentions to replace all the mention handling in message and interactions. (Such as Message#getMentionedUsers)
Example Mentions Changes

Old:

List<TextChannel> channels = message.getMentionedChannels(); // only handles TextChannel mentions
List<User> users = message.getMentionedUsers();

New:

List<GuildChannel> channels = message.getMentions().getChannels(); // handles all channel mentions
List<MessageChannel> messageChannels = message.getMentions().getChannels(MessageChannel.class); // filter by class type
List<User> users = message.getMentions().getUsers();

New Features

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.0.0-alpha.11...v5.0.0-alpha.12

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.12</version> 
</dependency>

v5.0.0-alpha.11

Compare Source

Overview

This release finally brings out modals! This includes a variety of constructs, but the key ones to be immediately aware of are:

  • Modal
  • TextInput
  • ModalInteraction
  • ModalInteractionEvent
  • IModalCallback (replyModal(modal))
Modal Example
@&#8203;Override
public void onSlashCommandInteraction(@&#8203;Nonnull SlashCommandInteractionEvent event) {
    if (event.getName().equals("support")) {
        TextInput email = TextInput.create("email", "Email", TextInputStyle.SHORT)
                .setPlaceholder("Enter your E-mail")
                .setMinLength(10)
                .setMaxLength(100) // or setRequiredRange(10, 100)
                .build();

        TextInput body = TextInput.create("body", "Body", TextInputStyle.PARAGRAPH)
                .setPlaceholder("Your concerns go here")
                .setMinLength(30)
                .setMaxLength(1000)
                .build();

        Modal modal = Modal.create("support", "Support")
                .addActionRows(ActionRow.of(email), ActionRow.of(body))
                .build();

        event.replyModal(modal).queue();
    }
}
@&#8203;Override
public void onModalInteraction(@&#8203;Nonnull ModalInteractionEvent event) {
    if (event.getModalId().equals("support")) {
        String email = event.getValue("email").getAsString();
        String body = event.getValue("body").getAsString();

        createSupportTicket(email, body);

        event.reply("Thanks for your request!").setEphemeral(true).queue();
    }
}

New Features

Changes

Bug Fixes

Removed

Full Changelog: discord-jda/JDA@v5.0.0-alpha.10...v5.0.0-alpha.11

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.11</version> 
</dependency>

v5.0.0-alpha.10

Compare Source

Overview

UserSnowflake

We changed User.fromId to now return UserSnowflake instead of User. This is done to prevent users from attempting code such as User.fromId(123).openPrivateChannel() which would never work.

With this we also changed some methods to no longer accept raw IDs as long and String. Instead you can now use method(User.fromId(long/String)), ie. ban(User.fromId(1234)).

Removed Methods:

  • Guild#ban(long/String), Guild#ban(long/String, int), Guild#ban(long/String, int, String)
  • Guild#kick(long/String), Guild#kick(long/String, String)
  • Guild#unban(long/String)
  • Guild#retrieveBanById(long/String)
  • Guild#addMember(String, long/String)
  • Guild#timeoutForById(long/String, Duration)
  • Guild#timeoutUntilById(long/String, TemporalAccessor)
  • Guild#removeTimeoutById(long/String)
  • Guild#addRoleToMember(long/String, Role)
  • Guild#removeRoleFromMember(long/String, Role)
  • AuditLogPaginationAction#user(long/String)

New Features

Changes

Bug Fixes

Removed

Full Changelog: discord-jda/JDA@v5.0.0-alpha.9...v5.0.0-alpha.10

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.10</version> 
</dependency>

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled due to failing status checks.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

renovate-approve[bot]
renovate-approve bot previously approved these changes Apr 18, 2022
@github-actions github-actions bot added this to ❓ 優先度未振り分け - Needs triage in Main Apr 18, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 5e3bf6e to c5847a6 Compare April 25, 2022 22:22
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.10 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.11 Apr 25, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes Apr 25, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes Apr 29, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 9, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 9, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 9, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 9, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 12, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes May 18, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 25c80c6 to 7ab9199 Compare May 18, 2022 16:53
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.11 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.12 May 18, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes Jun 2, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes Jun 19, 2022
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.12 fix(deps): update dependency net.dv8tion:JDA to v5.0.0-alpha.12 Jun 27, 2022
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:JDA to v5.0.0-alpha.12 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.12 Jun 28, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 874070b to 2651035 Compare June 28, 2022 19:09
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.12 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.13 Jun 28, 2022
renovate-approve[bot]
renovate-approve bot previously approved these changes Jun 28, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 2 times, most recently from 31e8675 to ff77f4d Compare July 4, 2022 17:57
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from ff77f4d to d3e128f Compare July 17, 2022 15:09
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.13 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.14 Jul 17, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from d3e128f to 803042c Compare July 17, 2022 19:11
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.14 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.15 Jul 17, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 803042c to 05db1f5 Compare July 18, 2022 15:26
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.15 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.16 Jul 18, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 05db1f5 to cf1a3d1 Compare July 22, 2022 16:22
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.16 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.17 Jul 22, 2022
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from cf1a3d1 to e088fae Compare July 25, 2022 16:02
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from e088fae to af4a3c4 Compare July 26, 2022 22:43
@renovate renovate bot changed the title fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.17 fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.17 - autoclosed Jul 29, 2022
@renovate renovate bot closed this Jul 29, 2022
Main automation moved this from ❓ 優先度未振り分け - Needs triage to ✅ 完了済み - Done / Closed Jul 29, 2022
@renovate renovate bot deleted the renovate/net.dv8tion-jda-5.x branch July 29, 2022 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Main
✅ 完了済み
Development

Successfully merging this pull request may close these issues.

None yet

0 participants