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.6 #197

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 20, 2022

WhiteSource Renovate

This PR contains the following updates:

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

Release Notes

DV8FromTheWorld/JDA

v5.0.0-alpha.6

Compare Source

Changelog

This release includes a variety of breaking changes that were needed to either correctly model how Discord models things in their API or to better set us up for future development.

In this version, we added a new pattern for options on commands. You can now use getOption(name[, fallback], resolver) to easily get any optional arguments for your commands:

public void onSlashCommandInteraction(SlashCommandInteractionEvent event)
{
    //                              name      fallback          resolver
    
    // null if user is not a member of the guild (fallback not used, since option is mapped to a User instance)
    Member member = event.getOption("target", event::getMember, OptionMapping::getAsMember);
    // null if fallback is used (getAsUser cannot be null)
    User user =     event.getOption("target", null            , OptionMapping::getAsUser);
    // null fallback implied
    User nullable = event.getOption("target",                   OptionMapping::getAsUser); // <- implicit fallback null

    // real use-cases:
    int days = event.getOption("days", 7, OptionMapping::getAsInt); // optional ban days
    String reason = event.getOption("reason", "banned by mod", OptionMapping::getAsString); // optional ban reason
}

You can also now flip the iteration direction for MessageChannel.getIterableHistory. A common request as of late, was to get the first messages of a channel, which can now be accomplished by doing channel.getIterableHistory().reverse().takeAsync(1000).

New Features

Changes

Removed

Full Changelog: discord-jda/JDA@v5.0.0-alpha.5...v5.0.0-alpha.6

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-alpha.6</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 Feb 20, 2022
@renovate renovate bot merged commit a544d47 into master Feb 21, 2022
@renovate renovate bot deleted the renovate/net.dv8tion-jda-5.x branch February 21, 2022 01:52
Main automation moved this from ❓ 優先度未振り分け - Needs triage to ✅ 完了済み - Done / Closed Feb 21, 2022
@github-actions
Copy link
Contributor

リリースが完了しました

https://github.com/jaoafa/Javajaotan2/releases/tag/v2.1.6

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

1 participant