discord.js-selfbot-v13/src/util/PremiumUsageFlags.js

32 lines
703 B
JavaScript
Raw Normal View History

2022-12-22 12:37:05 +00:00
'use strict';
const BitField = require('./BitField');
/**
* Data structure that makes it easy to interact with an {@link PremiumUsageFlags#flags} bitfield.
* @extends {BitField}
*/
class PremiumUsageFlags extends BitField {}
/**
* @name PremiumUsageFlags
* @kind constructor
* @memberof PremiumUsageFlags
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
*/
/**
* Numeric the Discord premium usage flags. All available properties:
2023-03-02 11:26:25 +00:00
* * `PREMIUM_DISCRIMINATOR`
2022-12-22 12:37:05 +00:00
* * `ANIMATED_AVATAR`
2023-03-02 11:26:25 +00:00
* * `PROFILE_BANNER`
2022-12-22 12:37:05 +00:00
* @type {Object}
*/
PremiumUsageFlags.FLAGS = {
2023-03-02 11:26:25 +00:00
PREMIUM_DISCRIMINATOR: 1 << 0,
2022-12-22 12:37:05 +00:00
ANIMATED_AVATAR: 1 << 1,
2023-03-02 11:26:25 +00:00
PROFILE_BANNER: 1 << 2,
2022-12-22 12:37:05 +00:00
};
module.exports = PremiumUsageFlags;