Class GuildMemberUpdateEvent

  • All Implemented Interfaces:
    GenericEvent

    public class GuildMemberUpdateEvent
    extends GenericGuildMemberEvent
    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 Detail

      • GuildMemberUpdateEvent

        public GuildMemberUpdateEvent​(@Nonnull
                                      JDA api,
                                      long responseNumber,
                                      @Nonnull
                                      Member member)