Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BitField<UserFlagsString>
    • UserFlags

Index

Constructors

  • new UserFlags(bits?: BitFieldResolvable<UserFlagsString, number>): UserFlags
  • Parameters

    • Optional bits: BitFieldResolvable<UserFlagsString, number>

    Returns UserFlags

Properties

bitfield: number
FLAGS: Record<UserFlagsString, number>

Methods

  • [iterator](): IterableIterator<UserFlagsString>
  • Returns IterableIterator<UserFlagsString>

  • add(...bits: BitFieldResolvable<UserFlagsString, number>[]): BitField<UserFlagsString, number>
  • Parameters

    • Rest ...bits: BitFieldResolvable<UserFlagsString, number>[]

    Returns BitField<UserFlagsString, number>

  • any(bit: BitFieldResolvable<UserFlagsString, number>): boolean
  • Parameters

    • bit: BitFieldResolvable<UserFlagsString, number>

    Returns boolean

  • equals(bit: BitFieldResolvable<UserFlagsString, number>): boolean
  • Parameters

    • bit: BitFieldResolvable<UserFlagsString, number>

    Returns boolean

  • freeze(): Readonly<BitField<UserFlagsString, number>>
  • Returns Readonly<BitField<UserFlagsString, number>>

  • has(bit: BitFieldResolvable<UserFlagsString, number>): boolean
  • Parameters

    • bit: BitFieldResolvable<UserFlagsString, number>

    Returns boolean

  • missing(bits: BitFieldResolvable<UserFlagsString, number>, ...hasParams: readonly unknown[]): UserFlagsString[]
  • Parameters

    • bits: BitFieldResolvable<UserFlagsString, number>
    • Rest ...hasParams: readonly unknown[]

    Returns UserFlagsString[]

  • remove(...bits: BitFieldResolvable<UserFlagsString, number>[]): BitField<UserFlagsString, number>
  • Parameters

    • Rest ...bits: BitFieldResolvable<UserFlagsString, number>[]

    Returns BitField<UserFlagsString, number>

  • serialize(...hasParams: readonly unknown[]): Record<UserFlagsString, boolean>
  • Parameters

    • Rest ...hasParams: readonly unknown[]

    Returns Record<UserFlagsString, boolean>

  • toArray(...hasParams: readonly unknown[]): UserFlagsString[]
  • Parameters

    • Rest ...hasParams: readonly unknown[]

    Returns UserFlagsString[]

  • toJSON(): number
  • Returns number

  • valueOf(): number
  • Returns number

  • resolve(bit?: BitFieldResolvable<UserFlagsString, number>): number
  • Parameters

    • Optional bit: BitFieldResolvable<UserFlagsString, number>

    Returns number

Generated using TypeDoc