Various changes along with some initial perm stuff

This commit is contained in:
MathMan05 2024-06-24 15:35:59 -05:00
parent 01c2439c24
commit f79b108b0d
8 changed files with 319 additions and 22 deletions

View file

@ -3,5 +3,19 @@ class role{
for(const thing of Object.keys(JSON)){
this[thing]=JSON[thing];
}
this.permissions=new permissions(JSON.permissions);
this.owner=owner;
console.log(this);
}
get guild(){
return this.owner;
}
get localuser(){
return this.guild.localuser;
}
getColor(){
if(this.color===0){return null};
return `#${this.color.toString(16)}`;
}
}