Interface ThreadMetadata
-
public interface ThreadMetadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.InstantgetArchiveTimestamp()Gets the timestamp when the thread's archive status was last changed, used for calculating recent activity.intgetAutoArchiveDuration()Gets the duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080.java.util.Optional<java.time.Instant>getCreationTimestamp()Gets the timestamp of when the thread was created.booleanisArchived()Whether this thread is archived.java.util.Optional<java.lang.Boolean>isInvitable()Informs you weather someone who is not a moderator can add non-moderator users to the thread.booleanisLocked()Whether this thread is locked.
-
-
-
Method Detail
-
isArchived
boolean isArchived()
Whether this thread is archived.- Returns:
- Whether this thread is archived.
-
getAutoArchiveDuration
int getAutoArchiveDuration()
Gets the duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080.- Returns:
- The duration for newly created threads.
-
isLocked
boolean isLocked()
Whether this thread is locked. When a thread is locked, only users with MANAGE_THREADS can unarchive it.- Returns:
- Whether this thread is locked.
-
getArchiveTimestamp
java.time.Instant getArchiveTimestamp()
Gets the timestamp when the thread's archive status was last changed, used for calculating recent activity.- Returns:
- The timestamp when the thread's archive status was last changed.
-
isInvitable
java.util.Optional<java.lang.Boolean> isInvitable()
Informs you weather someone who is not a moderator can add non-moderator users to the thread.- Returns:
- Whether non-moderator users can be added to the thread.
-
getCreationTimestamp
java.util.Optional<java.time.Instant> getCreationTimestamp()
Gets the timestamp of when the thread was created. Only populated for threads created after 2022-01-09- Returns:
- The timestamp of when the thread was created.
-
-