class UserFlagsBitField
extends
BitField<UserFlagsString>export class UserFlagsBitField extends BitField<UserFlagsString>
Data structure that makes it easy to interact with a flags bitfield.
[Symbol.iterator]IterableIterator<UserFlagsString> () :
Inherited from: BitField
add...bits: BitFieldResolvable<UserFlagsString, number>[]) : BitField<UserFlagsString, number> (
...bits: BitFieldResolvable<UserFlagsString, 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
freezeReadonly<BitField<UserFlagsString, number>> () :
Freezes these bits, making them immutable.
Inherited from: BitField
missingbits: BitFieldResolvable<UserFlagsString, number>...hasParams: readonly unknown[]) : UserFlagsString[] (
bits: BitFieldResolvable<UserFlagsString, number>
...hasParams: readonly unknown[]
Gets all given bits that are missing from the bitfield.
Inherited from: BitField
remove...bits: BitFieldResolvable<UserFlagsString, number>[]) : BitField<UserFlagsString, number> (
...bits: BitFieldResolvable<UserFlagsString, number>[]
Removes bits from these.
Returns: These bits or new BitField if the instance is frozen.
Inherited from: BitField
static resolvebit?: BitFieldResolvable<UserFlagsString, number>) : number (
bit?: BitFieldResolvable<UserFlagsString, number>
serialize...hasParams: readonly unknown[]) : Record<UserFlagsString, boolean> (
...hasParams: readonly unknown[]
Gets an object mapping field names to a indicating whether the bit is available.
Inherited from: BitField
toArray...hasParams: readonly unknown[]) : UserFlagsString[] (
...hasParams: readonly unknown[]
Gets an of bitfield names based on the bits available.
Inherited from: BitField