Various changes cleaning up how user data is stored

This commit is contained in:
MathMan05 2024-06-15 00:22:50 -05:00
parent 618cbf6167
commit 3ed09d615d
7 changed files with 163 additions and 50 deletions

View file

@ -3,6 +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};
if(!this.owner){
console.error("Owner was not included, please fix")
}
@ -56,6 +57,7 @@ class group extends channel{
constructor(JSON,owner){
super(-1);
this.owner=owner;
this.headers=this.owner.headers;
this.messages=[];
console.log(JSON.recipients,JSON)
this.name=JSON.recipients[0]?.username;