mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(ThreadManager): fix FetchedThreads typedef and startMessage (#5971)
This commit is contained in:
@@ -74,8 +74,7 @@ class ThreadManager extends BaseManager {
|
||||
* @typedef {Object} ThreadCreateOptions
|
||||
* @property {string} name The name of the new Thread
|
||||
* @property {ThreadAutoArchiveDuration} autoArchiveDuration How long before the thread is automatically archived
|
||||
* @property {MessageResolvable} [startMessage] The message to start a public or news thread from,
|
||||
* creates a private thread if not provided
|
||||
* @property {MessageResolvable} [startMessage] The message to start a thread from
|
||||
* @property {ThreadChannelType|number} [type='public_thread'] The type of thread to create
|
||||
* <warn>When creating threads in a `news` channel this is ignored and is always `news_thread`</warn>
|
||||
* @property {string} [reason] Reason for creating the thread
|
||||
@@ -186,7 +185,7 @@ class ThreadManager extends BaseManager {
|
||||
|
||||
/**
|
||||
* The data returned from a thread fetch that returns multiple threads.
|
||||
* @typedef {FetchedThreads}
|
||||
* @typedef {Object} FetchedThreads
|
||||
* @property {Collection<Snowflake, ThreadChannel>} threads The threads fetched, with any members returned
|
||||
* @property {?boolean} hasMore Whether there are potentially additional threads that require a subsequent call
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user