Files
discord.js/packages/discord.js/src/util/MessageFlagsBitField.js
Suneet Tipirneni e805777a7a refactor: use static fields (#7701)
* refactor: use static fields

* chore: refactor missed areas

* chore: remove memberof docs

* chore: make type changes
2022-03-24 02:38:05 +01:00

32 lines
670 B
JavaScript

'use strict';
const { MessageFlags } = require('discord-api-types/v10');
const BitField = require('./BitField');
/**
* Data structure that makes it easy to interact with a {@link Message#flags} bitfield.
* @extends {BitField}
*/
class MessageFlagsBitField extends BitField {
/**
* Numeric message flags.
* @type {MessageFlags}
*/
static Flags = MessageFlags;
}
/**
* @name MessageFlagsBitField
* @kind constructor
* @memberof MessageFlagsBitField
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
*/
/**
* Bitfield of the packed bits
* @type {number}
* @name MessageFlagsBitField#bitfield
*/
module.exports = MessageFlagsBitField;