Skip to content

Commit

Permalink
refactor(ThreadChannel): Use variables in joinable
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
Jiralite and kyranet committed Dec 22, 2021
1 parent cc7d586 commit 12b92ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class ThreadChannel extends Channel {
return (
!this.archived &&
!this.joined &&
this.permissionsFor(this.client.user).has(
permissions.has(
this.type === 'GUILD_PRIVATE_THREAD' ? Permissions.FLAGS.MANAGE_THREADS : Permissions.FLAGS.VIEW_CHANNEL,
false,
) &&
Expand Down

0 comments on commit 12b92ee

Please sign in to comment.