Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>ToggleBitfield

An object oriented Discordeno framework
Latest
class ToggleBitfield
Re-export
import { ToggleBitfield } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";

Constructors

new
ToggleBitfield(bitfield?: number)

Properties

bitfield: number

Methods

add(bits: number)

Adds some bits to the bitfield.

contains(bits: number)

Tests whether or not this bitfield has the permission requested.

remove(bits: number)

Removes some bits from the bitfield.