TS conversion

This commit is contained in:
MathMan05 2024-06-27 11:27:38 -05:00
parent 75fa9d0844
commit 845c7f6612
44 changed files with 6225 additions and 611 deletions

28
.dist/role.js Normal file
View file

@ -0,0 +1,28 @@
export { Role };
import { Permissions } from "./permissions.js";
class Role {
permissions;
owner;
color;
id;
constructor(JSON, owner) {
for (const thing of Object.keys(JSON)) {
this[thing] = JSON[thing];
}
this.permissions = new Permissions(JSON.permissions);
this.owner = owner;
}
get guild() {
return this.owner;
}
get localuser() {
return this.guild.localuser;
}
getColor() {
if (this.color === 0) {
return null;
}
;
return `#${this.color.toString(16)}`;
}
}