Class ThreadListPart

java.lang.Object
discord4j.core.object.ThreadListPart

public class ThreadListPart extends Object
A part of thread channels list which contains channels and thread members.
  • Constructor Details

    • ThreadListPart

      public ThreadListPart(GatewayDiscordClient client, discord4j.discordjson.json.ListThreadsData data)
  • Method Details

    • getThreads

      public List<ThreadChannel> getThreads()
      Gets the thread channels in this portion of the threads list.
      Returns:
      The thread channels in this portion of the threads list.
    • getMembers

      public List<ThreadMember> getMembers()
      Gets the thread members in this portion of the threads list.
      Returns:
      The thread members in this portion of the threads list.
    • combine

      public ThreadListPart combine(ThreadListPart other)
      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.