Class ThreadMember

java.lang.Object
discord4j.core.object.entity.ThreadMember

@Experimental public final class ThreadMember extends Object
A thread member is used to indicate whether a user has joined a thread or not.
See Also:
  • Constructor Details

    • ThreadMember

      public ThreadMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ThreadMemberData data)
      Constructs a ThreadMember with an associated GatewayDiscordClient and Discord data.
      Parameters:
      gateway - The GatewayDiscordClient 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

      public Snowflake getThreadId()
      Gets the ID of thread which member is associated.
      Returns:
      The ID of thread channel.
    • getUserId

      public Snowflake getUserId()
      Gets the ID of user.
      Returns:
      The ID of user.
    • getJoinTimestamp

      public Instant getJoinTimestamp()
      Gets when the user joined the thread.
      Returns:
      When the user joined the thread.
    • getFlags

      public int getFlags()
    • toString

      public String toString()
      Overrides:
      toString in class Object