Skip to content

Commit

Permalink
docs(ThreadChannel): fix documentation for setLocked method (#6053)
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi authored Jul 5, 2021
1 parent 162d89a commit 8d9ab74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d9ab74

Please sign in to comment.