Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bitfield Abstract

Utility class to hold bitfields sent by the Discord API.

kind

class

see

https://en.wikipedia.org/wiki/Bit_field

Hierarchy

Index

Constructors

Properties

bits: number
Bits: any = {}

A constant of the specified bits that can be set in the bitfield. See the children of this class for more details.

readonly

Methods

  • add(bit: number): number
  • has(bit: number): boolean
  • remove(bit: number): number
  • toArray(): string[]
  • toJSON(): number[]
  • toString(): string

Generated using TypeDoc