v7 stuff lots of stuff

This commit is contained in:
Skillz
2020-08-05 14:31:08 -04:00
parent f46362114d
commit a7f9bf6b94
38 changed files with 8984 additions and 5059 deletions
+11
View File
@@ -0,0 +1,11 @@
import { RoleData } from "../types/role.ts";
import { calculatePermissions } from "../utils/permissions.ts";
export const createRole = (data: RoleData) => ({
...data,
permissions: calculatePermissions(BigInt(data.permissions_new)),
/** The @ mention of the role in a string. */
mention: `<@&${data.id}>`,
});
export interface Role extends ReturnType<typeof createRole> {}