mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix(threads): require being sendable to be unarchivable (#7406)
This commit is contained in:
@@ -517,7 +517,7 @@ class ThreadChannel extends Channel {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get unarchivable() {
|
get unarchivable() {
|
||||||
return this.archived && (this.locked ? this.manageable : this.sendable);
|
return this.archived && this.sendable && (!this.locked || this.manageable);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user