| // "nucleusSettingsUpdated" |
| const tickets = ["support", "report", "question", "issue", "suggestion", "other"]; |
| const toHexInteger = (permissions: string[], array?: string[]): string => { |
| for (const perm of permissions) { |
| int += BigInt(2 ** array.indexOf(perm)); |
| const toHexArray = (permissionsHex: string, array?: string[]): string[] => { |
| const permissions: string[] = []; |
| const int = BigInt("0x" + permissionsHex) |
| for (const index in int) { |
| if (int[index] === "1" && array.length > parseInt(index)) { |
| permissions.push(array[index]!); |
| export { toHexInteger, toHexArray, tickets, logs }; |