Skip to main content

ToggleBitfieldBigint

@discordeno/botDocs


Documentation / @discordeno/bot / ToggleBitfieldBigint

Class: ToggleBitfieldBigint

Extended by

Constructors

new ToggleBitfieldBigint()

new ToggleBitfieldBigint(bitfield?): ToggleBitfieldBigint

Parameters

bitfield?: bigint

Returns

ToggleBitfieldBigint

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:33

Properties

bitfield

bitfield: bigint = 0n

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:31

Methods

add()

add(bits): this

Adds some bits to the bitfield.

Parameters

bits: bigint

Returns

this

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:43


contains()

contains(bits): boolean

Tests whether or not this bitfield has the permission requested.

Parameters

bits: bigint

Returns

boolean

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:38


remove()

remove(bits): this

Removes some bits from the bitfield.

Parameters

bits: bigint

Returns

this

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:49


toJSON()

toJSON(): string

Returns

string

Defined in

packages/bot/src/transformers/toggles/ToggleBitfield.ts:54