mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(ThreadChannel): Require sendable for unarchivable (#7555)
This commit is contained in:
@@ -487,7 +487,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