ThreadMetadata class
Thread Metadata structure
The thread metadata object contains a number of thread-specific channel fields that are not needed by other channel types.
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- ThreadMetadata({required bool archived, required ThreadAutoArchiveDuration autoArchiveDuration, required DateTime archiveTimestamp, required bool locked, bool? invitable})
- Constructor
-
ThreadMetadata.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- archived → bool
-
whether the thread is archived
final
- archiveTimestamp → DateTime
-
timestamp when the thread's archive status was last changed, used for
calculating recent activity
final
- autoArchiveDuration → ThreadAutoArchiveDuration
-
duration in minutes to automatically archive the thread after recent
activity, can be set to: 60, 1440, 4320, 10080
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invitable → bool?
-
whether non-moderators can add other non-moderators to a thread; only
available on private threads
final
- locked → bool
-
whether the thread is locked; when a thread is locked, only users with
MANAGE_THREADS can unarchive it
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited