fix(PurchasedFlags): wrong
This commit is contained in:
31
src/util/PurchasedFlags.js
Normal file
31
src/util/PurchasedFlags.js
Normal file
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
|
||||
const BitField = require('./BitField');
|
||||
|
||||
/**
|
||||
* Data structure that makes it easy to interact with an {@link PurchasedFlags#flags} bitfield.
|
||||
* @extends {BitField}
|
||||
*/
|
||||
class PurchasedFlags extends BitField {}
|
||||
|
||||
/**
|
||||
* @name PurchasedFlags
|
||||
* @kind constructor
|
||||
* @memberof PurchasedFlags
|
||||
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
|
||||
*/
|
||||
|
||||
/**
|
||||
* Numeric the Discord purchased flags. All available properties:
|
||||
* * `NITRO_CLASSIC`
|
||||
* * `NITRO`
|
||||
* * `GUILD_BOOST`
|
||||
* @type {Object}
|
||||
*/
|
||||
PurchasedFlags.FLAGS = {
|
||||
NITRO_CLASSIC: 1 << 0,
|
||||
NITRO: 1 << 1,
|
||||
GUILD_BOOST: 1 << 2,
|
||||
};
|
||||
|
||||
module.exports = PurchasedFlags;
|
||||
Reference in New Issue
Block a user