get rid of the odd complexity of the snowflake class

This commit is contained in:
MathMan05 2024-09-03 10:34:40 -05:00
parent b72d7673f4
commit 03041cf9fd
13 changed files with 237 additions and 257 deletions

View file

@ -31,7 +31,8 @@ class Member{
}
if(thing==="roles"){
for(const strrole of memberjson.roles){
const role=SnowFlake.getSnowFlakeFromID(strrole,Role).getObject();
const role=this.guild.roleids.get(strrole);
if(!role) continue;
this.roles.push(role);
}
continue;