Constructors
-
ThreadBuilder(String? name, {ThreadArchiveTime? archiveAfter, bool? archived, bool? invitable, bool? locked, bool? private, int? rateLimitPerUser})
-
Create a public thread
-
ThreadBuilder.private(String? name, {ThreadArchiveTime? archiveAfter, bool? archived, bool? invitable, bool? locked, int? rateLimitPerUser})
-
Create a private thread
Properties
-
archiveAfter
↔ ThreadArchiveTime?
-
The time after which the thread is automatically archived.
read / write
-
archived
↔ bool?
-
Whether the thread is archived
read / write
-
hashCode
→ int
-
The hash code for this object.
read-onlyinherited
-
invitable
↔ bool?
-
Whether non-moderators can add other non-moderators to a thread; only available on private threads
read / write
-
locked
↔ bool?
-
Whether the thread is locked; when a thread is locked, only users with MANAGE_THREADS can unarchive it
read / write
-
name
↔ String?
-
The name for the thread
read / write
-
private
↔ bool?
-
Whether or not the thread is private
read / write
-
rateLimitPerUser
↔ int?
-
Amount of seconds a user has to wait before sending another message (0-21600);
bots, as well as users with the permission manage_messages, manage_thread, or manage_channel, are unaffected
read / write
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
build()
→ RawApiMap
-
Returns built response for api
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited