get rid of snowflake stuff more

This commit is contained in:
MathMan05
2024-09-03 10:41:17 -05:00
parent 03041cf9fd
commit 004beb4955
13 changed files with 23 additions and 47 deletions

View File

@@ -8,7 +8,7 @@ class Role{
permissions:Permissions;
owner:Guild;
color:number;
readonly snowflake:SnowFlake<Role>;
readonly snowflake:SnowFlake;
name:string;
info:Guild["info"];
hoist:boolean;
@@ -24,7 +24,7 @@ class Role{
this.info=owner.info;
for(const thing of Object.keys(json)){
if(thing==="id"){
this.snowflake=new SnowFlake(json.id,this);
this.snowflake=new SnowFlake(json.id);
continue;
}
this[thing]=json[thing];