- Preparing search index...
- The search index is not available
DJS-Bot
Class BitField<Flags, Type>
Type Parameters
-
Flags extends string
-
Type extends number | bigint = number
Constructors
constructor
- new BitField<Flags, Type>(bits?): BitField<Flags, Type>
-
Type Parameters
-
Flags extends string
-
Type extends number | bigint = number
Returns BitField<Flags, Type>
Properties
bitfield
bitfield: Type
Static
Flags
Flags: EnumLike<unknown, number | bigint>
Methods
[iterator]
- [iterator](): IterableIterator<Flags>
-
Returns IterableIterator<Flags>
add
- add(...bits): BitField<Flags, Type>
-
Returns BitField<Flags, Type>
any
- any(bit): boolean
-
Returns boolean
equals
- equals(bit): boolean
-
Returns boolean
freeze
- freeze(): Readonly<BitField<Flags, Type>>
-
Returns Readonly<BitField<Flags, Type>>
has
- has(bit): boolean
-
Returns boolean
missing
- missing(bits, ...hasParams): Flags[]
-
Parameters
-
-
Rest
...hasParams: readonly unknown[]
Returns Flags[]
remove
- remove(...bits): BitField<Flags, Type>
-
Returns BitField<Flags, Type>
serialize
- serialize(...hasParams): Record<Flags, boolean>
-
Parameters
-
Rest
...hasParams: readonly unknown[]
Returns Record<Flags, boolean>
toArray
- toArray(...hasParams): Flags[]
-
Parameters
-
Rest
...hasParams: readonly unknown[]
Returns Flags[]
toJSON
- toJSON(): Type extends number
? number
: string
-
Returns Type extends number
? number
: string
valueOf
- valueOf(): Type
-
Returns Type
Static
resolve
- resolve(bit?): number | bigint
-
Returns number | bigint