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