Skip to main content

ToggleBitfield

@discordeno/botDocs


Documentation / @discordeno/bot / ToggleBitfield

Class: ToggleBitfield

Extended by

Constructors

new ToggleBitfield()

new ToggleBitfield(bitfield?): ToggleBitfield

Parameters

bitfield?: number

Returns

ToggleBitfield

Defined in

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

Properties

bitfield

bitfield: number = 0

Defined in

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

Methods

add()

add(bits): this

Adds some bits to the bitfield.

Parameters

bits: number

Returns

this

Defined in

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


contains()

contains(bits): boolean

Tests whether or not this bitfield has the permission requested.

Parameters

bits: number

Returns

boolean

Defined in

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


remove()

remove(bits): this

Removes some bits from the bitfield.

Parameters

bits: number

Returns

this

Defined in

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


toJSON()

toJSON(): number

Returns

number

Defined in

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