Skip to main content

ToggleBitfieldBigint

@discordeno/bot


Documentation / @discordeno/bot / ToggleBitfieldBigint

Class: ToggleBitfieldBigint

Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:30

Extended by

Constructors

new ToggleBitfieldBigint()

new ToggleBitfieldBigint(bitfield?): ToggleBitfieldBigint

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

Parameters

bitfield?

bigint

Returns

ToggleBitfieldBigint

Properties

bitfield

bitfield: bigint = 0n

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

Methods

add()

add(bits): this

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

Adds some bits to the bitfield.

Parameters

bits

bigint

Returns

this


contains()

contains(bits): boolean

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

Tests whether or not this bitfield has the permission requested.

Parameters

bits

bigint

Returns

boolean


remove()

remove(bits): this

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

Removes some bits from the bitfield.

Parameters

bits

bigint

Returns

this


toJSON()

toJSON(): string

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

Returns

string