From f108746c15bf4db9a887efe373ebd4906fba0889 Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Wed, 30 Jun 2021 21:50:01 +0530 Subject: [PATCH] docs(ThreadManager): fix FetchedThreads typedef and startMessage (#5971) --- src/managers/ThreadManager.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/managers/ThreadManager.js b/src/managers/ThreadManager.js index 8089a4e8b..f53e927ba 100644 --- a/src/managers/ThreadManager.js +++ b/src/managers/ThreadManager.js @@ -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 * When creating threads in a `news` channel this is ignored and is always `news_thread` * @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} threads The threads fetched, with any members returned * @property {?boolean} hasMore Whether there are potentially additional threads that require a subsequent call */