more fixes
This commit is contained in:
parent
3805b4a63b
commit
ebce301cbf
2 changed files with 2 additions and 2 deletions
|
@ -1854,7 +1854,7 @@ class Localuser{
|
|||
}
|
||||
}
|
||||
}
|
||||
members.sort((a,b)=>a[1]-b[1]);
|
||||
members.sort((a,b)=>b[1]-a[1]);
|
||||
this.MDSearchOptions(members.map((a)=>["@"+a[0].name,`<@${a[0].id}> `]),original);
|
||||
}
|
||||
MDFindMention(name:string,original:string){
|
||||
|
|
|
@ -135,7 +135,7 @@ class Member extends SnowFlake{
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
return Math.max(similar(this.user.name),similar(this.user.nickname),similar(this.nick),similar(this.user.username),similar(this.id));
|
||||
return Math.max(similar(this.user.name),similar(this.user.nickname),similar(this.nick),similar(this.user.username),similar(this.id)/1.5);
|
||||
}
|
||||
static async resolveMember(
|
||||
user: User,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue