Various changes along with some initial perm stuff
This commit is contained in:
@@ -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)}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user