fix: temporary invite & feat: InviteFlags

This commit is contained in:
Elysia
2024-01-30 12:26:40 +07:00
parent 289f812ec6
commit 6307a4b7f2
6 changed files with 64 additions and 6 deletions

29
src/util/InviteFlags.js Normal file
View File

@@ -0,0 +1,29 @@
'use strict';
const BitField = require('./BitField');
/**
* Data structure that makes it easy to interact with an {@link InviteFlags#flags} bitfield.
* @extends {BitField}
*/
class InviteFlags extends BitField {}
/**
* @name InviteFlags
* @kind constructor
* @memberof InviteFlags
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
*/
/**
* Numeric the Discord invite flags. All available properties:
* * `GUEST`
* * `VIEWED`
* @type {Object}
*/
InviteFlags.FLAGS = {
GUEST: 1 << 0,
VIEWED: 1 << 1,
};
module.exports = InviteFlags;