remove incorrect bot check
This commit is contained in:
@@ -46,12 +46,12 @@ class Member extends SnowFlake {
|
||||
}
|
||||
(this as any)[key] = (memberjson as any)[key];
|
||||
}
|
||||
if (!this.user.bot) {
|
||||
const everyone = this.guild.roleids.get(this.guild.id);
|
||||
if (everyone && this.roles.indexOf(everyone) === -1) {
|
||||
this.roles.push(everyone);
|
||||
}
|
||||
|
||||
const everyone = this.guild.roleids.get(this.guild.id);
|
||||
if (everyone && this.roles.indexOf(everyone) === -1) {
|
||||
this.roles.push(everyone);
|
||||
}
|
||||
|
||||
this.roles.sort((a, b) => {
|
||||
return this.guild.roles.indexOf(a) - this.guild.roles.indexOf(b);
|
||||
});
|
||||
|
Reference in New Issue
Block a user