Documentation
    Preparing search index...

    Class ModPermissionsBF

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

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

      Returns ModPermissionsBF

    Properties

    bitField: number

    Bitfield of the packed bits

    constructor: BitFieldConstructor<
        | "backup_app"
        | "commit_app"
        | "edit_ram"
        | "logs_app"
        | "restart_app"
        | "start_app"
        | "status_app"
        | "stop_app",
        number,
    >
    All: ModPermissionsBF = ...
    DefaultBit: 0
    Flags: typeof ModPermissionsFlags = ModPermissionsFlags

    Numeric bitfield flags. Defined in extension classes

    Methods

    • Returns Generator<
          | "backup_app"
          | "commit_app"
          | "edit_ram"
          | "logs_app"
          | "restart_app"
          | "start_app"
          | "status_app"
          | "stop_app",
          void,
          unknown,
      >

    • Adds bits to these ones.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bits to add

      Returns this

      These bits or new BitField if the instance is frozen.

    • Checks whether the bitfield has a bit, or any of multiple bits.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bit(s) to check for

      Returns boolean

    • Checks if this bitfield equals another

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bit(s) to check for

      Returns boolean

    • Checks whether the bitfield has a bit, or multiple bits.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bit(s) to check for

      Returns boolean

    • Gets all given bits that are missing from the bitfield.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bit(s) to check for

      Returns (
          | "backup_app"
          | "commit_app"
          | "edit_ram"
          | "logs_app"
          | "restart_app"
          | "start_app"
          | "status_app"
          | "stop_app"
      )[]

    • Removes bits from these.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        Bits to remove

      Returns this

      These bits or new BitField if the instance is frozen.

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

      Returns Record<
          | "backup_app"
          | "commit_app"
          | "edit_ram"
          | "logs_app"
          | "restart_app"
          | "start_app"
          | "status_app"
          | "stop_app",
          boolean,
      >

    • Replace the bits with these.

      Parameters

      • ...bits: BitFieldResolvable<
            | "backup_app"
            | "commit_app"
            | "edit_ram"
            | "logs_app"
            | "restart_app"
            | "start_app"
            | "status_app"
            | "stop_app",
            number,
        >[]

        bits to set

      Returns this

      These bits or new BitField if the instance is frozen.

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

      Returns (
          | "backup_app"
          | "commit_app"
          | "edit_ram"
          | "logs_app"
          | "restart_app"
          | "start_app"
          | "status_app"
          | "stop_app"
      )[]