From 8d9ab741c8037c2f6ca708e1afdc047ae4eb9eba Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Mon, 5 Jul 2021 23:06:25 +0530 Subject: [PATCH] docs(ThreadChannel): fix documentation for setLocked method (#6053) --- src/structures/ThreadChannel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/ThreadChannel.js b/src/structures/ThreadChannel.js index 1a6ca53ae..e0de36495 100644 --- a/src/structures/ThreadChannel.js +++ b/src/structures/ThreadChannel.js @@ -267,9 +267,10 @@ class ThreadChannel extends Channel { } /** - * Sets whether the thread can be archived by anyone or just mods. + * Sets whether the thread can be **unarchived** by anyone with `SEND_MESSAGES` permission. + * When a thread is locked only members with `MANAGE_THREADS` can unarchive it. * @param {boolean} [locked=true] Whether the thread is locked - * @param {string} [reason] Reason for archiving or unarchiving + * @param {string} [reason] Reason for locking or unlocking the thread * @returns {Promise} * @example * // Set the thread to locked