Class
BitField
Constructor
new BitField
(bits: BitFieldResolvable<>)| Param | Type | Description |
|---|---|---|
| bits | BitFieldResolvable<> |
Properties
[Symbol.toStringTag]
: string (readonly)bitfield
: bigintctor
: BitFieldCtor (readonly)DefaultBit
: bigintFlags
: Record<string, bigint>Methods
[Symbol.iterator]
(): IterableIterator<>add
(bits: BitFieldResolvable<>[]): this| Param | Type | Description |
|---|---|---|
| bits | BitFieldResolvable<>[] |
any
(bit: BitFieldResolvable<>): booleanWhether this bitfield contains any of the given bits.
| Param | Type | Description |
|---|---|---|
| bit | BitFieldResolvable<> |
equals
(other: BitFieldResolvable<>): boolean| Param | Type | Description |
|---|---|---|
| other | BitFieldResolvable<> |
freeze
(): Readonly<this>has
(bit: BitFieldResolvable<>): booleanWhether this bitfield contains all of the given bits.
| Param | Type | Description |
|---|---|---|
| bit | BitFieldResolvable<> |
missing
(bit: BitFieldResolvable<>): []Bits present in `bit` but missing from this bitfield.
| Param | Type | Description |
|---|---|---|
| bit | BitFieldResolvable<> |
orAll
(bits: BitFieldResolvable<>[]): bigint| Param | Type | Description |
|---|---|---|
| bits | BitFieldResolvable<>[] |
remove
(bits: BitFieldResolvable<>[]): this| Param | Type | Description |
|---|---|---|
| bits | BitFieldResolvable<>[] |
resolve
(bits: BitFieldResolvable<>): bigintResolve a resolvable into a single bigint bitfield.
| Param | Type | Description |
|---|---|---|
| bits | BitFieldResolvable<> |
serialize
(): Record<, boolean>toArray
(): []toJSON
(): stringDecimal string of the bigint bitfield (API / JSON).
toString
(): stringvalueOf
(): bigint