DiscordThreadMetadata class
Constructors
- DiscordThreadMetadata({required bool archived, required int autoArchiveDuration, required String archiveTimestamp, required bool locked, bool? invitable, String? createTimestamp})
-
DiscordThreadMetadata.fromJson(Map<
String, dynamic> json) -
factory
Properties
- archived → bool
-
whether the thread is archived
final
- archiveTimestamp → String
-
timestamp when the thread's archive status was last changed,
used for calculating recent activity
final
- archiveTimestampAsDateTime → DateTime?
-
no setter
- autoArchiveDuration → int
-
duration in minutes to automatically archive the thread
after recent activity, can be set to: 60, 1440, 4320, 10080
final
- createTimestamp → String?
-
timestamp when the thread was created; only populated
for threads created after 2022-01-09
final
- createTimestampAsDateTime → DateTime?
-
no setter
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- archivedEntry → const String
- archiveTimestampEntry → const String
- autoArchiveDurationEntry → const String
- createTimestampEntry → const String
- invitableEntry → const String
- lockedEntry → const String