MessageFlagsBitField

export class MessageFlagsBitField extends BitField<MessageFlagsString>
export class MessageFlagsBitField extends BitField<MessageFlagsString>
Data structure that makes it easy to interact with a flags bitfield.
bitfield:N
Bitfield of the packed bits
Inherited from BitField
Static
Flags:typeof MessageFlags
Numeric message flags.
[Symbol.iterator]():IterableIterator<S>
add(...bits):BitField<S, N>
Adds bits to these ones.
Returns
These bits or new BitField if the instance is frozen.
NameTypeOptionalDescription
...bitsBitFieldResolvable<S, N>[]NoBits to add
Inherited from BitField
any(bit):boolean
Checks whether the bitfield has a bit, or any of multiple bits.
NameTypeOptionalDescription
bitBitFieldResolvable<S, N>NoBit(s) to check for
Inherited from BitField
equals(bit):boolean
Checks if this bitfield equals another
NameTypeOptionalDescription
bitBitFieldResolvable<S, N>NoBit(s) to check for
Inherited from BitField
freeze():Readonly<BitField<S, N>>
Freezes these bits, making them immutable.
Inherited from BitField
has(bit):boolean
Checks whether the bitfield has a bit, or multiple bits.
NameTypeOptionalDescription
bitBitFieldResolvable<S, N>NoBit(s) to check for
Inherited from BitField
missing(bits, ...hasParams):S[]
Gets all given bits that are missing from the bitfield.
NameTypeOptionalDescription
bitsBitFieldResolvable<S, N>NoBit(s) to check for
...hasParamsreadonly unknown[]NoAdditional parameters for the has method, if any
Inherited from BitField
remove(...bits):BitField<S, N>
Removes bits from these.
Returns
These bits or new BitField if the instance is frozen.
NameTypeOptionalDescription
...bitsBitFieldResolvable<S, N>[]NoBits to remove
Inherited from BitField
Static
resolve(bit?):number
NameTypeOptionalDescription
bitBitFieldResolvable<MessageFlagsString, number>YesNone
serialize(...hasParams):Record<S, boolean>
Gets an object mapping field names to a indicating whether the bit is available.
NameTypeOptionalDescription
...hasParamsreadonly unknown[]NoAdditional parameters for the has method, if any
Inherited from BitField
toArray(...hasParams):S[]
Gets an of bitfield names based on the bits available.
NameTypeOptionalDescription
...hasParamsreadonly unknown[]NoAdditional parameters for the has method, if any
Inherited from BitField
toJSON():N extends number ? number : string
valueOf():N