Class GenericGuildMemberEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.member.GenericGuildMemberEvent
All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
GenericGuildMemberUpdateEvent, GuildMemberJoinEvent, GuildMemberRoleAddEvent, GuildMemberRoleRemoveEvent, GuildMemberUpdateEvent

public abstract class GenericGuildMemberEvent extends GenericGuildEvent
Indicates that a Guild member event is fired.
Every GuildMemberEvent is an instance of this event and can be casted.

Most of these events require the GUILD_MEMBERS intent to be enabled.
createDefault(String) and createLight(String) disable this by default!

Can be used to detect any GuildMemberEvent.

  • Constructor Details

  • Method Details

    • getUser

      @Nonnull public User getUser()
      The User instance
      Shortcut for getMember().getUser()
      Returns:
      The User instance
    • getMember

      @Nonnull public Member getMember()
      The Member instance
      Returns:
      The Member instance