Data structure that makes it easy to interact with a flags bitfield.
Extends
BitField<ApplicationFlagsString>Adds bits to these ones.
Returns
These bits or new BitField if the instance is frozen.Name | Type | Optional | Description |
---|---|---|---|
...bits | BitFieldResolvable<ApplicationFlagsString, number>[] | No | Bits to add |
Checks whether the bitfield has a bit, or any of multiple bits.
Name | Type | Optional | Description |
---|---|---|---|
bit | BitFieldResolvable<ApplicationFlagsString, number> | No | Bit(s) to check for |
Checks if this bitfield equals another
Name | Type | Optional | Description |
---|---|---|---|
bit | BitFieldResolvable<ApplicationFlagsString, number> | No | Bit(s) to check for |
Freezes these bits, making them immutable.
Inherited from BitFieldChecks whether the bitfield has a bit, or multiple bits.
Name | Type | Optional | Description |
---|---|---|---|
bit | BitFieldResolvable<ApplicationFlagsString, number> | No | Bit(s) to check for |
Gets all given bits that are missing from the bitfield.
Name | Type | Optional | Description |
---|---|---|---|
bits | BitFieldResolvable<ApplicationFlagsString, number> | No | Bit(s) to check for |
...hasParams | readonly unknown[] | No | Additional parameters for the has method, if any |
Removes bits from these.
Returns
These bits or new BitField if the instance is frozen.Name | Type | Optional | Description |
---|---|---|---|
...bits | BitFieldResolvable<ApplicationFlagsString, number>[] | No | Bits to remove |
Name | Type | Optional | Description |
---|---|---|---|
bit | BitFieldResolvable<ApplicationFlagsString, number> | Yes | None |
Gets an object mapping field names to a boolean indicating whether the bit is available.
Name | Type | Optional | Description |
---|---|---|---|
...hasParams | readonly unknown[] | No | Additional parameters for the has method, if any |
Gets an Array of bitfield names based on the bits available.
Name | Type | Optional | Description |
---|---|---|---|
...hasParams | readonly unknown[] | No | Additional parameters for the has method, if any |