docs(ThreadChannel): fix documentation for setLocked method (#6053)

This commit is contained in:
Shubham Parihar
2021-07-05 23:06:25 +05:30
committed by GitHub
parent 162d89a42f
commit 8d9ab741c8

View File

@@ -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<ThreadChannel>}
* @example
* // Set the thread to locked