Skip to content

v3.2.5

Compare
Choose a tag to compare
@quanticc quanticc released this 16 Jun 03:08
· 210 commits to master since this release

Discord4J v3.2.5 is now available on Maven Central. Includes many bugfixes, improvements, new API and Discord features supported as well as one behavior change.

Stable branch: 3.2.x
Closed issues: Milestone
Full Changelog: 3.2.4...3.2.5

⚠️ Behavior change

  • Exclude message content intent from IntentSet.nonPrivileged()
    • Relevant for verified bots only, if your bot is unverified and under 100 guilds this change doesn't affect you
    • Since this is our default setting, if you didn't previously set intents, make sure to switch to the following set and keep previous behavior:
GatewayDiscordClient client = DiscordClient.create(System.getenv("token"))
        .gateway()
        .setEnabledIntents(IntentSet.nonPrivileged().or(IntentSet.of(MESSAGE_CONTENT)))
        .login()
        .block();

⭐️ New features

  • Add support for the new username system (#1147)
  • Add OAuth2 module (#1083)
    • Allowing you to support new command permissions system
    • Fetching user connections
    • Advanced bot authorization and webhooks
    • Use it by adding discord4j-oauth2 to your dependencies and check out our examples
  • Implement guild scheduled events (#1134)
    • New event payloads, ScheduledEvent
  • Support partial or multiple store backends (#1152)
    • Filling the role of our legacy MappingStoreService to the new API
    • SelectiveStoreLayout and StoreFlag abstractions
    • Can disable parts of the caching system or combine backends
  • Add GuildCommandRegistrar and GlobalCommandRegistrar (Example)
  • Add ActionRow#withAddedComponent and withRemovedComponent
  • Support deleteMessageSeconds in BanQuerySpec (#1146)
  • Implement fields for raid mention and safety alerts (#1148)
  • Add rateLimitPerUser to all supported channels
  • Implement Application Flags (#1131)

⚠️ Deprecations

  • BanQuerySpec#deleteMessageDays: check #1146
  • RestGuild#modifyOwnNickname: switch to modifyCurrentMember
  • Message#suppressEmbeds: to be removed (#1138)
  • Permission.MANAGE_EMOJIS_AND_STICKERS: for MANAGE_GUILD_EXPRESSIONS (#1141)

🚀 Enhancements

  • Update available permissions (#1141) (#1151)
  • Update message flags and types (#1142)
  • Update system channel flags
  • Ignore event type GUILD_JOIN_REQUEST_UPDATE and stop spamming log.warn on future unsupported events

🐞 Bug fixes

  • Propagate request cancellation to HttpClient (#1153)
    • Fix potential leaks due to unprocessed responses after a cancellation
  • Return proper values in AutoModActionExecutedEvent accessors (#1145)
  • Throw proper exception from AuditLogEntry.getResponsibleUser if it originated from a gateway event (#1136)
  • Fix wrong variable name in GetAutoModRuleByIdAction (#1127)

🔨 Dependency upgrades

💜 Contributors

Thanks to all contributors and collaborators involved in this release!
@indyteo @Doc94 @kashike @Gregory-Widmer @j0rdanit0 @Azn9