Discord.https - v3.0.16
    Preparing search index...

    Class BitField<TEnum, TValue>

    Data structure that makes it easy to interact with a bitfield.

    Type Parameters

    • TEnum extends Record<string, number | bigint> = Record<string, number>
    • TValue = TEnum[keyof TEnum]

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    bitfield: TValue

    Bitfield of the packed bits

    DefaultBit: number | bigint = 0

    Default bit value

    Flags: Record<string, number | bigint> = {}

    Numeric bitfield flags.

    Methods

    • Gets an object mapping field names to a boolean indicating whether the bit is available.

      Parameters

      • ...hasParams: any[]

        Additional parameters for the has method, if any

      Returns Record<string, boolean>

    • Gets an Array of bitfield names based on the bits available.

      Parameters

      • ...hasParams: any[]

      Returns string[]