Package discord4j.core.object
Class ThreadListPart
java.lang.Object
discord4j.core.object.ThreadListPart
A part of thread channels list which contains channels and thread members.
-
Constructor Summary
ConstructorDescriptionThreadListPart
(GatewayDiscordClient client, discord4j.discordjson.json.ListThreadsData data) -
Method Summary
Modifier and TypeMethodDescriptioncombine
(ThreadListPart other) Combines this portion of the threads list with another portion.Gets the thread members in this portion of the threads list.Gets the thread channels in this portion of the threads list.
-
Constructor Details
-
ThreadListPart
-
-
Method Details
-
getThreads
Gets the thread channels in this portion of the threads list.- Returns:
- The thread channels in this portion of the threads list.
-
getMembers
Gets the thread members in this portion of the threads list.- Returns:
- The thread members in this portion of the threads list.
-
combine
Combines this portion of the threads list with another portion.- Parameters:
other
- The other portion to combine with.- Returns:
- A new
ThreadListPart
with both parts.
-