Skip to content
Success

Changes

Summary

  1. Support gateway intents and configurable member caching (#1190) (commit: d9ec373) (details)
Commit d9ec3736c948caf846460405cdf6fb8b6991ef71 by noreply
Support gateway intents and configurable member caching (#1190)

* First pass on member cache policy
* Add INVALID_INTENTS to close code enum
* Deprecate AccountType.CLIENT
* Add Guild#unloadMembers
* Update README with better examples
* Improve handling of channel overrides
* Add documentation for intents and member cache policy
* Remove references to guild subscriptions
* Add GuildMemberRemoveEvent
* Improve retrieveMemberById and retrieveUserById
* Changes to the builders, we use factory methods now :)
* Disable presence cache by default
* Add JDA#getGatewayIntents
(commit: d9ec373)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/GuildBanEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/MessageEmbed.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/exceptions/VerificationLevelException.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/config/MetaConfig.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/CloseCode.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/PrivateChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/PresenceUpdateHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/PermissionUtil.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/PermissionOverrideActionImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/GuildChannel.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/GuildMemberJoinEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/UserUpdateDiscriminatorEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/ChannelDeleteHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Message.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Guild.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/VoiceChannelImpl.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/events/guild/override/GenericPermissionOverrideEvent.java
The file was addedsrc/main/java/net/dv8tion/jda/api/events/guild/override/PermissionOverrideUpdateEvent.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Member.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/UserUpdateAvatarEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/pagination/ReactionPaginationActionImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/JDABuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/GuildMemberRoleRemoveEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildMembersChunkHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/update/GuildMemberUpdateBoostTimeEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/UserActivityStartEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildSetupController.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/ChunkingFilter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/AuditableRestAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/MessageChannel.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/config/AuthorizationConfig.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/annotations/DeprecatedSince.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/JDAInfo.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/ChannelUpdateHandler.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/GatewayIntent.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/GenericUserPresenceEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/UserActivityEndEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/PermissionOverride.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/config/flags/ConfigFlag.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildMemberUpdateHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/UserUpdateHandler.java (diff)
The file was modifiedsrc/examples/java/MessageListenerExample.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/managers/ChannelManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/sharding/DefaultShardManager.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/events/guild/override/PermissionOverrideCreateEvent.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/AccountType.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/GuildMemberLeaveEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/TextChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/ChannelType.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/self/SelfUpdateNitroEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/GuildImpl.java (diff)
The file was modifiedREADME.md (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/sharding/DefaultShardManagerBuilder.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/internal/requests/MemberChunkManager.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildDeleteHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/managers/AccountManagerImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/hooks/ListenerAdapter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/channel/voice/update/VoiceChannelUpdatePermissionsEvent.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/events/guild/member/GuildMemberRemoveEvent.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/GuildMemberRoleAddEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/InviteCreateHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/MessageActionImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/WebSocketClient.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/config/sharding/ShardingConfig.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildMemberRemoveHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/JDA.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/EntityBuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildBanHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/VoiceStateUpdateHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/EmbedBuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/self/SelfUpdateEmailEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/channel/category/update/CategoryUpdatePermissionsEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildMemberAddHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/GuildSetupNode.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/channel/text/update/TextChannelUpdatePermissionsEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/annotations/ReplaceWith.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/channel/store/update/StoreChannelUpdatePermissionsEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/sharding/ShardManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/self/SelfUpdatePhoneNumberEvent.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/MemberCachePolicy.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/UserTypingEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/cache/CacheFlag.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/SelfUserImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/JDAImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/UserUpdateNameEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/TextChannel.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/MemberImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/SelfUser.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/guild/member/update/GuildMemberUpdateNicknameEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/managers/AccountManager.java (diff)
The file was addedsrc/examples/java/LRUCachePolicy.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/MessageAction.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/events/guild/override/PermissionOverrideDeleteEvent.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/self/SelfUpdateMobileEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/PermissionOverrideImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/ChannelAction.java (diff)
The file was modifiedsrc/examples/java/AudioEchoExample.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/SessionControllerAdapter.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/package-info.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/annotations/ForRemoval.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/UserUpdateOnlineStatusEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/events/user/update/UserUpdateActivityOrderEvent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/handle/EventCache.java (diff)