Various changes along with some initial perm stuff
This commit is contained in:
parent
01c2439c24
commit
f79b108b0d
8 changed files with 319 additions and 22 deletions
|
@ -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)}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue