discord.js
Version:
A powerful library for interacting with the Discord API
33 lines (27 loc) • 673 B
JavaScript
;
const { UserFlags } = require('discord-api-types/v10');
const BitField = require('./BitField');
/**
* Data structure that makes it easy to interact with a {@link User#flags} bitfield.
* @extends {BitField}
*/
class UserFlagsBitField extends BitField {
/**
* Numeric user flags.
* @type {UserFlags}
* @memberof UserFlagsBitField
*/
static Flags = UserFlags;
}
/**
* @name UserFlagsBitField
* @kind constructor
* @memberof UserFlagsBitField
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
*/
/**
* Bitfield of the packed bits
* @type {number}
* @name UserFlagsBitField#bitfield
*/
module.exports = UserFlagsBitField;