Class GuildMemberLeaveEvent
- 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.GuildMemberLeaveEvent
-
- All Implemented Interfaces:
GenericEvent
@Deprecated @ForRemoval(deadline="5.0.0") @DeprecatedSince("4.2.0") @ReplaceWith("GuildMemberRemoveEvent") public class GuildMemberLeaveEvent extends GenericGuildMemberEvent
Deprecated.This was deprecated in favour ofGuildMemberRemoveEvent
Indicates aMember
left aGuild
.This event is only fired if the member was cached. You can use
GuildMemberRemoveEvent
to detect any member removes, regardless of cache state.This event requires the
GUILD_MEMBERS
intent to be enabled.createDefault(String)
andcreateLight(String)
disable this by default!Can be used to retrieve members who leave a guild.
-
-
Constructor Summary
Constructors Constructor Description GuildMemberLeaveEvent(JDA api, long responseNumber, Member member)
Deprecated.
-
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, getResponseNumber
-
-