Class GuildMemberUpdateEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.member.GenericGuildMemberEvent
net.dv8tion.jda.api.events.guild.member.GuildMemberUpdateEvent
- All Implemented Interfaces:
GenericEvent
Fired for every
Member
update, regardless of cache.
This is a watered-down version of the GenericGuildMemberUpdateEvent
which only provides the updated member instance. This is useful when JDA cannot fire specific update events when the member is uncached.
You can use this to do stateless checks on member instances to update database entries or check for special roles.
Note that the member might not be in cache when this event is fired due to the MemberCachePolicy
.
Requirements
This event requires the GUILD_MEMBERS
intent to be enabled.
createDefault(String)
and
createLight(String)
disable this by default!
- Since:
- 4.2.1
-
Constructor Summary
-
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.member.GenericGuildMemberEvent
getMember, getUser
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildMemberUpdateEvent
-