Skip to content

Commit

Permalink
fix(ThreadChannel): Require sendable for unarchivable (#7555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Mar 2, 2022
1 parent 215dfe0 commit 49397c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ThreadChannel.js
Expand Up @@ -487,7 +487,7 @@ class ThreadChannel extends Channel {
* @readonly
*/
get unarchivable() {
return this.archived && (this.locked ? this.manageable : this.sendable);
return this.archived && this.sendable && (!this.locked || this.manageable);
}

/**
Expand Down

0 comments on commit 49397c0

Please sign in to comment.