mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
fix: permission flag
This commit is contained in:
parent
761009ab9e
commit
437adbef96
@ -13,8 +13,8 @@ test('format Number', () => {
|
|||||||
|
|
||||||
test('checking Permission', () => {
|
test('checking Permission', () => {
|
||||||
expect(checkPerm(0x0, 0x0)).toBe(true)
|
expect(checkPerm(0x0, 0x0)).toBe(true)
|
||||||
expect(checkPerm(0x1, 0x2)).toBe(false)
|
expect(checkPerm(0x1, 0x4)).toBe(false)
|
||||||
expect(checkPerm(7, 'booster')).toBe(true)
|
expect(checkPerm(9, 'booster')).toBe(true)
|
||||||
expect(checkPerm(0, 'staff')).toBe(false)
|
expect(checkPerm(0, 'staff')).toBe(false)
|
||||||
expect(checkPerm(0x2, 'staff')).toBe(false)
|
expect(checkPerm(0x2, 'staff')).toBe(false)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -35,8 +35,8 @@ export const Status = {
|
|||||||
export const perms = {
|
export const perms = {
|
||||||
general: 0x0,
|
general: 0x0,
|
||||||
staff: 0x1,
|
staff: 0x1,
|
||||||
bughunter: 0x2,
|
bughunter: 0x4,
|
||||||
booster: 0x4,
|
booster: 0x8,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const libs = [
|
export const libs = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user