mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 17:40:07 +00:00
* refactor: use static fields * chore: refactor missed areas * chore: remove memberof docs * chore: make type changes
32 lines
670 B
JavaScript
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;
|