Adds semi-broken account switcher
This commit is contained in:
parent
16694653b5
commit
03173a35e4
8 changed files with 130 additions and 45 deletions
|
@ -32,7 +32,7 @@ class guild{
|
|||
}
|
||||
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")
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ class guild{
|
|||
return this.member.hasRole(r);
|
||||
}
|
||||
loadChannel(ID){
|
||||
if(ID){
|
||||
if(ID&&this.channelids[ID]){
|
||||
this.channelids[ID].getHTML();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue