struct Servo::Model::ThreadMetadata
- Servo::Model::ThreadMetadata
- Struct
- Value
- Object
Overview
Represents Thread Metadata.
Contains thread-specific channel fields that are not needed by other channel types.
Included Modules
- JSON::Serializable
Defined in:
model/channel/thread_metadata.crConstructors
Instance Method Summary
- #archive_timestamp : Time
-
#archived? : Bool
Whether the thread is archived.
-
#auto_archive_duration : Servo::Model::ThreadAutoArchiveDuration
Duration in minutes to automatically archive the thread after recent activity.
- #create_timestamp : Time | Nil
-
#invitable : Bool | Nil
Whether non-moderators can add other non-moderators to a thread.
-
#locked? : Bool
Whether the thread is locked.
Constructor Detail
Instance Method Detail
def auto_archive_duration : Servo::Model::ThreadAutoArchiveDuration
#
Duration in minutes to automatically archive the thread after recent activity.
Can be set to: 60, 1440, 4320, 10080.
def invitable : Bool | Nil
#
Whether non-moderators can add other non-moderators to a thread.
This option is only available on private threads.
def locked? : Bool
#
Whether the thread is locked.
When the thread is locked, only users with MANAGE_THREADS permission can unarchive it.