fix bug
This commit is contained in:
@@ -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()) {
|
||||
|
@@ -276,7 +276,7 @@ class Channel{
|
||||
}
|
||||
get hasunreads():boolean{
|
||||
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:string,member=this.guild.member):boolean{
|
||||
if(member.isAdmin()){
|
||||
|
Reference in New Issue
Block a user