Class GenericThreadMemberEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.thread.GenericThreadEvent
net.dv8tion.jda.api.events.thread.member.GenericThreadMemberEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
ThreadMemberJoinEvent
,ThreadMemberLeaveEvent
Indicates that a
ThreadMember
event has been fired.
If you can see a ThreadChannel
, you will receive all derived thread member events for it.
Current derived events:
- See Also:
-
Constructor Summary
ConstructorDescriptionGenericThreadMemberEvent
(JDA api, long responseNumber, ThreadChannel thread, long threadMemberId, ThreadMember threadMember) -
Method Summary
Modifier and TypeMethodDescriptionTheThreadMember
as a guildMember
.TheThreadMember
of the event that has been fired.The id of theThreadMember
that fired this and derived event.long
The id of theThreadMember
.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
-
GenericThreadMemberEvent
public GenericThreadMemberEvent(@Nonnull JDA api, long responseNumber, ThreadChannel thread, long threadMemberId, ThreadMember threadMember)
-
-
Method Details
-
getThreadMemberId
The id of theThreadMember
that fired this and derived event.- Returns:
- Never-null String containing the ID.
-
getThreadMemberIdLong
public long getThreadMemberIdLong()The id of theThreadMember
.- Returns:
- Long containing the Id.
-
getThreadMember
TheThreadMember
of the event that has been fired.- Returns:
- The
ThreadMember
of the event that has been fired.
-
getMember
TheThreadMember
as a guildMember
.- Returns:
- The
ThreadMember
as a guildMember
.
-