class SKUFlagsBitField
extends
BitField<SKUFlagsString>export class SKUFlagsBitField extends BitField<SKUFlagsString>Data structure that makes it easy to interact with an flags bitfield.
[Symbol.iterator]() : IterableIterator<SKUFlagsString>
Inherited from: BitField
add(...bits: BitFieldResolvable<SKUFlagsString, number>[]) : BitField<SKUFlagsString, number>
...bits: BitFieldResolvable<SKUFlagsString, number>[]
Adds bits to these ones.
Returns: These bits or new BitField if the instance is frozen.
Inherited from: BitField
any() : boolean
Checks whether the bitfield has a bit, or any of multiple bits.
Inherited from: BitField
freeze() : Readonly<BitField<SKUFlagsString, number>>
Freezes these bits, making them immutable.
Inherited from: BitField
missing(bits: BitFieldResolvable<SKUFlagsString, number>...hasParams: readonly unknown[]) : SKUFlagsString[]
bits: BitFieldResolvable<SKUFlagsString, number>
...hasParams: readonly unknown[]
Gets all given bits that are missing from the bitfield.
Inherited from: BitField
remove(...bits: BitFieldResolvable<SKUFlagsString, number>[]) : BitField<SKUFlagsString, number>
...bits: BitFieldResolvable<SKUFlagsString, number>[]
Removes bits from these.
Returns: These bits or new BitField if the instance is frozen.
Inherited from: BitField
static resolve(bit?: BitFieldResolvable<SKUFlagsString, number>) : number
bit?: BitFieldResolvable<SKUFlagsString, number>
serialize(...hasParams: readonly unknown[]) : Record<SKUFlagsString, boolean>
...hasParams: readonly unknown[]
Gets an object mapping field names to a boolean indicating whether the bit is available.
Inherited from: BitField
toArray(...hasParams: readonly unknown[]) : SKUFlagsString[]
...hasParams: readonly unknown[]
Gets an Array of bitfield names based on the bits available.
Inherited from: BitField