mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
remove storing strings instead of 1 number
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
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}>`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user