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
The timestamp when the thread's archive status was last changed, used for calculating recent activity.
-
#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
The timestamp when this thread was created.
-
#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
The timestamp when the thread's archive status was last changed, used for calculating recent activity.
Duration in minutes to automatically archive the thread after recent activity.
Can be set to: 60, 1440, 4320, 10080.
The timestamp when this thread was created.
This field only exist on threads created after 2022-01-09.
Whether non-moderators can add other non-moderators to a thread.
This option is only available on private threads.
Whether the thread is locked.
When the thread is locked, only users with MANAGE_THREADS permission can unarchive it.