v3.2.5
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
- New event payloads,
- Support partial or multiple store backends (#1152)
- Filling the role of our legacy
MappingStoreService
to the new API SelectiveStoreLayout
andStoreFlag
abstractions- Can disable parts of the caching system or combine backends
- Filling the role of our legacy
- Add
GuildCommandRegistrar
andGlobalCommandRegistrar
(Example) - Add
ActionRow#withAddedComponent
andwithRemovedComponent
- Support
deleteMessageSeconds
inBanQuerySpec
(#1146) - Implement fields for raid mention and safety alerts (#1148)
- Add
rateLimitPerUser
to all supported channels - Implement Application Flags (#1131)
⚠️ Deprecations
BanQuerySpec#deleteMessageDays
: check #1146RestGuild#modifyOwnNickname
: switch tomodifyCurrentMember
Message#suppressEmbeds
: to be removed (#1138)Permission.MANAGE_EMOJIS_AND_STICKERS
: forMANAGE_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
- discord-json 1.6.17
- Reactor 2020.0.33
- Gradle Wrapper to 7.6.1 (#1132)
- Improve github workflow (#1102)
💜 Contributors
Thanks to all contributors and collaborators involved in this release!
@indyteo @Doc94 @kashike @Gregory-Widmer @j0rdanit0 @Azn9