ThreadMember class

Thread Member structure

A thread member is used to indicate whether a user has joined a thread or not.

https://discord.com/developers/docs/resources/channel#thread-member-object-thread-member-structure

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

ThreadMember({String? id, String? userId, required DateTime joinTimestamp, required int flags})
Constructor
ThreadMember.fromJson(Map<String, dynamic> json)
From json
factory

Properties

flags int
any user-thread settings, currently only used for notifications
final
hashCode int
The hash code for this object.
no setterinherited
id String?
the id of the thread
final
joinTimestamp DateTime
the time the current user last joined the thread
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String?
the id of the user
final

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