struct Servo::Model::ThreadMetadata

Overview

Represents Thread Metadata.

Contains thread-specific channel fields that are not needed by other channel types.

Included Modules

Defined in:

model/channel/thread_metadata.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def archive_timestamp : Time #

[View source]
def archived? : Bool #

Whether the thread is archived.


[View source]
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.


[View source]
def create_timestamp : Time | Nil #

[View source]
def invitable : Bool | Nil #

Whether non-moderators can add other non-moderators to a thread.

This option is only available on private threads.


[View source]
def locked? : Bool #

Whether the thread is locked.

When the thread is locked, only users with MANAGE_THREADS permission can unarchive it.


[View source]