This commit is contained in:
MathMan05 2024-08-20 10:46:00 -05:00
parent cc6b389448
commit 3de40285d2
2 changed files with 2 additions and 2 deletions

View file

@ -267,7 +267,7 @@ class Channel {
if (!this.hasPermission("VIEW_CHANNEL")) {
return false;
}
return this.lastmessageid !== this.lastreadmessageid && this.type !== 4 && !!this.lastmessageid;
return this.lastmessageid !== this.lastreadmessageid && this.type !== 4 && !this.lastmessageid;
}
hasPermission(name, member = this.guild.member) {
if (member.isAdmin()) {