pfp randomization for new users
This commit is contained in:
parent
b1fc333bc4
commit
28e7f1bdc8
2 changed files with 4 additions and 2 deletions
|
@ -144,7 +144,8 @@ class User {
|
||||||
return this.info.cdn + "/avatars/" + this.id + "/" + this.avatar + ".png";
|
return this.info.cdn + "/avatars/" + this.id + "/" + this.avatar + ".png";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return this.info.cdn + "/embed/avatars/3.png";
|
const int = new Number((BigInt(this.id) >> 22n) % 6n);
|
||||||
|
return this.info.cdn + `/embed/avatars/${int}.png`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createjankpromises() {
|
createjankpromises() {
|
||||||
|
|
|
@ -146,7 +146,8 @@ class User{
|
||||||
if(this.avatar!=null){
|
if(this.avatar!=null){
|
||||||
return this.info.cdn+"/avatars/"+this.id+"/"+this.avatar+".png";
|
return this.info.cdn+"/avatars/"+this.id+"/"+this.avatar+".png";
|
||||||
}else{
|
}else{
|
||||||
return this.info.cdn+"/embed/avatars/3.png";
|
const int=new Number((BigInt(this.id) >> 22n) % 6n);
|
||||||
|
return this.info.cdn+`/embed/avatars/${int}.png`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createjankpromises(){
|
createjankpromises(){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue