Package discord4j.core.object.entity
Class ThreadMember
java.lang.Object
discord4j.core.object.entity.ThreadMember
A thread member is used to indicate whether a user has joined a thread or not.
- See Also:
-
Constructor Summary
ConstructorDescriptionThreadMember
(GatewayDiscordClient gateway, discord4j.discordjson.json.ThreadMemberData data) Constructs aThreadMember
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
-
Constructor Details
-
ThreadMember
Constructs aThreadMember
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
getData
public discord4j.discordjson.json.ThreadMemberData getData()Gets the data of the thread member.- Returns:
- The data of the thread member.
-
getThreadId
Gets the ID of thread which member is associated.- Returns:
- The ID of thread channel.
-
getUserId
Gets the ID of user.- Returns:
- The ID of user.
-
getJoinTimestamp
Gets when the user joined the thread.- Returns:
- When the user joined the thread.
-
getFlags
public int getFlags() -
toString
-