mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(ThreadChannel): fix documentation for setLocked method (#6053)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user