Adds semi-broken account switcher
This commit is contained in:
parent
16694653b5
commit
03173a35e4
8 changed files with 130 additions and 45 deletions
|
@ -3,7 +3,7 @@ class dirrect extends guild{
|
|||
super(-1);
|
||||
console.log(JSON);
|
||||
this.owner=owner;
|
||||
this.headers={"Content-type": "application/json; charset=UTF-8",Authorization:this.owner.userinfo.token};
|
||||
this.headers=this.owner.headers;
|
||||
if(!this.owner){
|
||||
console.error("Owner was not included, please fix")
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ class group extends channel{
|
|||
document.getElementById("channelname").innerText="@"+this.name;
|
||||
}
|
||||
messageCreate(messagep,focus){
|
||||
const messagez=new cmessage(messagep.d);
|
||||
const messagez=new cmessage(messagep.d,this);
|
||||
this.lastmessageid=messagez.id;
|
||||
if(messagez.author===this.owner.owner.user){
|
||||
this.lastreadmessageid=messagez.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue