Adds semi-broken account switcher

This commit is contained in:
MathMan05 2024-06-15 17:28:02 -05:00
parent 16694653b5
commit 03173a35e4
8 changed files with 130 additions and 45 deletions

View file

@ -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;
}