adds support for role settings and various fixes

This commit is contained in:
MathMan05 2024-06-30 22:05:14 -05:00
parent 96b2dbb21c
commit 8fe0c9f46b
20 changed files with 1199 additions and 183 deletions

View file

@ -7,7 +7,16 @@ class Role{
owner:Guild;
color:number;
id:string;
name:string;
info:Guild["info"];
hoist:boolean;
icon:string;
mentionable:boolean;
unicode_emoji:string;
headers:Guild["headers"];
constructor(JSON, owner:Guild){
this.headers=owner.headers;
this.info=owner.info;
for(const thing of Object.keys(JSON)){
this[thing]=JSON[thing];
}
@ -24,5 +33,4 @@ class Role{
if(this.color===0){return null};
return `#${this.color.toString(16)}`;
}
}