nickname resolving
This commit is contained in:
parent
659fcfa9f1
commit
9806065ffe
1 changed files with 10 additions and 0 deletions
|
@ -429,6 +429,11 @@ class Message extends SnowFlake{
|
||||||
author.bind(minipfp, this.guild);
|
author.bind(minipfp, this.guild);
|
||||||
username.textContent = author.username;
|
username.textContent = author.username;
|
||||||
author.bind(username, this.guild);
|
author.bind(username, this.guild);
|
||||||
|
Member.resolveMember(author, this.guild).then(_=>{
|
||||||
|
if(_){
|
||||||
|
username.textContent=_.name;
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
reply.onclick = _=>{
|
reply.onclick = _=>{
|
||||||
// TODO: FIX this
|
// TODO: FIX this
|
||||||
|
@ -467,6 +472,11 @@ class Message extends SnowFlake{
|
||||||
const username = document.createElement("span");
|
const username = document.createElement("span");
|
||||||
username.classList.add("username");
|
username.classList.add("username");
|
||||||
this.author.bind(username, this.guild);
|
this.author.bind(username, this.guild);
|
||||||
|
Member.resolveMember(this.author, this.guild).then(_=>{
|
||||||
|
if(_){
|
||||||
|
username.textContent=_.name;
|
||||||
|
}
|
||||||
|
})
|
||||||
div.classList.add("topMessage");
|
div.classList.add("topMessage");
|
||||||
username.textContent = this.author.username;
|
username.textContent = this.author.username;
|
||||||
const userwrap = document.createElement("div");
|
const userwrap = document.createElement("div");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue