ToggleBitfield
Documentation / @discordeno/bot / ToggleBitfield
Class: ToggleBitfield
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:1
Extended by
Constructors
new ToggleBitfield()
new ToggleBitfield(
bitfield
?):ToggleBitfield
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:4
Parameters
bitfield?
number
Returns
Properties
bitfield
bitfield:
number
=0
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:2
Methods
add()
add(
bits
):this
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:14
Adds some bits to the bitfield.
Parameters
bits
number
Returns
this
contains()
contains(
bits
):boolean
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:9
Tests whether or not this bitfield has the permission requested.
Parameters
bits
number
Returns
boolean
remove()
remove(
bits
):this
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:20
Removes some bits from the bitfield.
Parameters
bits
number
Returns
this
toJSON()
toJSON():
number
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:25
Returns
number