Skip to content

Commit

Permalink
fix(threads): require being sendable to be unarchivable (#7406)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlavorSeol committed Feb 12, 2022
1 parent 81d8b54 commit 861f0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,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 861f0e2

Please sign in to comment.