use depricated snowflake function less
This commit is contained in:
@@ -321,8 +321,7 @@ class Localuser {
|
||||
break;
|
||||
case "USER_UPDATE":
|
||||
if (this.initialized) {
|
||||
const users = SnowFlake.getSnowFlakeFromID(temp.d.id, User).getObject();
|
||||
console.log(users, temp.d.id);
|
||||
const users = this.userMap.get(temp.d.id);
|
||||
if (users) {
|
||||
users.userupdate(temp.d);
|
||||
}
|
||||
|
@@ -36,8 +36,8 @@ class Member {
|
||||
}
|
||||
this[thing] = memberjson[thing];
|
||||
}
|
||||
if (SnowFlake.getSnowFlakeFromID(this?.id, User)) {
|
||||
this.user = SnowFlake.getSnowFlakeFromID(this.id, User).getObject();
|
||||
if (this.localuser.userMap.has(this?.id)) {
|
||||
this.user = this.localuser.userMap.get(this?.id);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user