Class ThreadMemberLeaveEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.thread.GenericThreadEvent
net.dv8tion.jda.api.events.thread.member.GenericThreadMemberEvent
net.dv8tion.jda.api.events.thread.member.ThreadMemberLeaveEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a guild
Member
left a ThreadChannel
.- See Also:
-
Constructor Summary
ConstructorDescriptionThreadMemberLeaveEvent
(JDA api, long responseNumber, ThreadChannel thread, long threadMemberId, ThreadMember threadMember) -
Method Summary
Modifier and TypeMethodDescriptionTheThreadMember
that just left the thread as a guildMember
.TheThreadMember
that just left the thread.Methods inherited from class net.dv8tion.jda.api.events.thread.member.GenericThreadMemberEvent
getThreadMemberId, getThreadMemberIdLong
Methods inherited from class net.dv8tion.jda.api.events.thread.GenericThreadEvent
getGuild, getThread
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
ThreadMemberLeaveEvent
public ThreadMemberLeaveEvent(@Nonnull JDA api, long responseNumber, ThreadChannel thread, long threadMemberId, ThreadMember threadMember)
-
-
Method Details
-
getThreadMember
TheThreadMember
that just left the thread. This entity will not be present inThreadChannel.getThreadMembers()
list.- Overrides:
getThreadMember
in classGenericThreadMemberEvent
- Returns:
- The
ThreadMember
that just left the thread
-
getMember
TheThreadMember
that just left the thread as a guildMember
.- Overrides:
getMember
in classGenericThreadMemberEvent
- Returns:
- The
ThreadMember
that just left the thread as a guildMember
.
-