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

fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.11 #788

Merged
merged 1 commit into from
May 2, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 18, 2022

WhiteSource 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.11 age adoption passing confidence

Release Notes

DV8FromTheWorld/JDA

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
@​Override
public void onSlashCommandInteraction(@​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();
    }
}
@​Override
public void onModalInteraction(@​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: At any time (no schedule defined).

🚦 Automerge: Enabled.

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 WhiteSource Renovate. View repository job log here.

@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 2 times, most recently from abd0388 to 09a6260 Compare April 25, 2022 22:54
@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 renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 4 times, most recently from df03443 to 2b94f84 Compare May 2, 2022 14:32
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 2b94f84 to 2ba028d Compare May 2, 2022 18:13
@jaotan jaotan requested a review from book000 May 2, 2022 19:02
@jaotan jaotan changed the base branch from master to renovate-2022-05-02 May 2, 2022 19:52
@book000 book000 changed the base branch from renovate-2022-05-02 to master May 2, 2022 19:55
@jaotan jaotan changed the base branch from master to renovate-2022-05-02 May 2, 2022 20:01
@book000 book000 merged commit 09e8589 into renovate-2022-05-02 May 2, 2022
Main automation moved this from ❓ 優先度未振り分け - Needs triage to ✅ 完了済み - Done / Closed May 2, 2022
@book000 book000 deleted the renovate/net.dv8tion-jda-5.x branch May 2, 2022 20:03
@github-actions github-actions bot added the ✅完了済み ✅ 完了済み - Done / Closed label May 2, 2022
book000 added a commit that referenced this pull request May 2, 2022
* chore: Update dependencies packages for renovate

* chore(deps): update github/codeql-action action to v2 (#793)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency net.dv8tion:jda to v5.0.0-alpha.11 (#788)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update shogo82148/actions-upload-release-asset action to v1.6.2 (#783)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update jetbrains/qodana-action action to v5.0.4 (#780)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency com.jaoafa:jaosuperachievement2 to v2.5.22 (#773)

* fix: dep-update/プレフィックスにブランチ名を変更

* fix: forじゃなくてby

* fix: コメントアウトコードの削除 (#812)

* fix(deps): update dependency com.jaoafa:jaosuperachievement2 to v2.5.22

Co-authored-by: Tomachi <8929706+book000@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency com.maxmind.geoip2:geoip2 to v3.0.1 (#772)

* fix: dep-update/プレフィックスにブランチ名を変更

* fix: forじゃなくてby

* fix: コメントアウトコードの削除 (#812)

* fix(deps): update dependency com.maxmind.geoip2:geoip2 to v3.0.1

Co-authored-by: Tomachi <8929706+book000@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.3.0 (#771)

* fix: dep-update/プレフィックスにブランチ名を変更

* fix: forじゃなくてby

* fix: コメントアウトコードの削除 (#812)

* chore(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.3.0

Co-authored-by: Tomachi <8929706+book000@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tomachi <8929706+book000@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✅完了済み ✅ 完了済み - Done / Closed
Projects
Main
✅ 完了済み
Development

Successfully merging this pull request may close these issues.

None yet

2 participants