reduce uneeded logging
This commit is contained in:
parent
4a64972cd1
commit
3805b4a63b
2 changed files with 1 additions and 6 deletions
|
@ -1737,7 +1737,6 @@ class Localuser{
|
||||||
this.typeMd.boxupdate(typebox);
|
this.typeMd.boxupdate(typebox);
|
||||||
}
|
}
|
||||||
MDSearchOptions(options:[string,string][],original:string){
|
MDSearchOptions(options:[string,string][],original:string){
|
||||||
console.warn(original);
|
|
||||||
const div=document.getElementById("searchOptions");
|
const div=document.getElementById("searchOptions");
|
||||||
if(!div)return;
|
if(!div)return;
|
||||||
div.innerHTML="";
|
div.innerHTML="";
|
||||||
|
@ -1856,11 +1855,9 @@ class Localuser{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
members.sort((a,b)=>a[1]-b[1]);
|
members.sort((a,b)=>a[1]-b[1]);
|
||||||
console.log(members);
|
|
||||||
this.MDSearchOptions(members.map((a)=>["@"+a[0].name,`<@${a[0].id}> `]),original);
|
this.MDSearchOptions(members.map((a)=>["@"+a[0].name,`<@${a[0].id}> `]),original);
|
||||||
}
|
}
|
||||||
MDFindMention(name:string,original:string){
|
MDFindMention(name:string,original:string){
|
||||||
console.log(original);
|
|
||||||
if(this.ws&&this.lookingguild){
|
if(this.ws&&this.lookingguild){
|
||||||
this.MDFineMentionGen(name,original);
|
this.MDFineMentionGen(name,original);
|
||||||
const nonce=Math.floor(Math.random()*10**8)+"";
|
const nonce=Math.floor(Math.random()*10**8)+"";
|
||||||
|
@ -1907,9 +1904,7 @@ class Localuser{
|
||||||
const match=str.match(this.autofillregex);
|
const match=str.match(this.autofillregex);
|
||||||
|
|
||||||
if(match){
|
if(match){
|
||||||
console.log(str,match);
|
|
||||||
const [type, search]=[match[0][0],match[0].split(/@|#|:/)[1]];
|
const [type, search]=[match[0][0],match[0].split(/@|#|:/)[1]];
|
||||||
console.log(type,search);
|
|
||||||
switch(type){
|
switch(type){
|
||||||
case "#":
|
case "#":
|
||||||
this.MDFindChannel(search,str);
|
this.MDFindChannel(search,str);
|
||||||
|
|
|
@ -135,7 +135,7 @@ class Member extends SnowFlake{
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return Math.max(similar(this.user.name),similar(this.user.nickname),similar(this.nick),similar(this.user.username))
|
return Math.max(similar(this.user.name),similar(this.user.nickname),similar(this.nick),similar(this.user.username),similar(this.id));
|
||||||
}
|
}
|
||||||
static async resolveMember(
|
static async resolveMember(
|
||||||
user: User,
|
user: User,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue