2022-03-24 10:55:32 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const BitField = require('./BitField');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Data structure that makes it easy to interact with a {@link ClientApplication#flags} bitfield.
|
|
|
|
* @extends {BitField}
|
|
|
|
*/
|
|
|
|
class ApplicationFlags extends BitField {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name ApplicationFlags
|
|
|
|
* @kind constructor
|
|
|
|
* @memberof ApplicationFlags
|
|
|
|
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bitfield of the packed bits
|
|
|
|
* @type {number}
|
|
|
|
* @name ApplicationFlags#bitfield
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Numeric application flags. All available properties:
|
2022-11-12 02:53:38 +00:00
|
|
|
* * `EMBEDDED_RELEASED`
|
|
|
|
* * `MANAGED_EMOJI`
|
|
|
|
* * `GROUP_DM_CREATE`
|
|
|
|
* * `RPC_PRIVATE_BETA`
|
|
|
|
* * `ALLOW_ASSETS`
|
|
|
|
* * `ALLOW_ACTIVITY_ACTION_SPECTATE`
|
|
|
|
* * `ALLOW_ACTIVITY_ACTION_JOIN_REQUEST`
|
|
|
|
* * `RPC_HAS_CONNECTED`
|
2022-03-24 10:55:32 +00:00
|
|
|
* * `GATEWAY_PRESENCE`
|
|
|
|
* * `GATEWAY_PRESENCE_LIMITED`
|
|
|
|
* * `GATEWAY_GUILD_MEMBERS`
|
|
|
|
* * `GATEWAY_GUILD_MEMBERS_LIMITED`
|
|
|
|
* * `VERIFICATION_PENDING_GUILD_LIMIT`
|
|
|
|
* * `EMBEDDED`
|
|
|
|
* * `GATEWAY_MESSAGE_CONTENT`
|
|
|
|
* * `GATEWAY_MESSAGE_CONTENT_LIMITED`
|
2022-07-22 04:08:40 +00:00
|
|
|
* * `EMBEDDED_FIRST_PARTY`
|
|
|
|
* * `APPLICATION_COMMAND_BADGE`
|
2022-11-12 02:53:38 +00:00
|
|
|
* * `ACTIVE`
|
2022-03-24 10:55:32 +00:00
|
|
|
* @type {Object}
|
|
|
|
* @see {@link https://discord.com/developers/docs/resources/application#application-object-application-flags}
|
2022-11-12 02:53:38 +00:00
|
|
|
* @see {@link https://flags.lewistehminerz.dev/}
|
2022-03-24 10:55:32 +00:00
|
|
|
*/
|
|
|
|
ApplicationFlags.FLAGS = {
|
2022-11-12 02:53:38 +00:00
|
|
|
EMBEDDED_RELEASED: 1 << 1,
|
|
|
|
MANAGED_EMOJI: 1 << 2,
|
|
|
|
GROUP_DM_CREATE: 1 << 4,
|
|
|
|
RPC_PRIVATE_BETA: 1 << 5,
|
|
|
|
ALLOW_ASSETS: 1 << 8,
|
|
|
|
ALLOW_ACTIVITY_ACTION_SPECTATE: 1 << 9,
|
|
|
|
ALLOW_ACTIVITY_ACTION_JOIN_REQUEST: 1 << 10,
|
|
|
|
RPC_HAS_CONNECTED: 1 << 11,
|
2022-03-24 10:55:32 +00:00
|
|
|
GATEWAY_PRESENCE: 1 << 12,
|
|
|
|
GATEWAY_PRESENCE_LIMITED: 1 << 13,
|
|
|
|
GATEWAY_GUILD_MEMBERS: 1 << 14,
|
|
|
|
GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
|
|
|
|
VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
|
|
|
|
EMBEDDED: 1 << 17,
|
|
|
|
GATEWAY_MESSAGE_CONTENT: 1 << 18,
|
|
|
|
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
2022-07-22 04:08:40 +00:00
|
|
|
EMBEDDED_FIRST_PARTY: 1 << 20,
|
|
|
|
APPLICATION_COMMAND_BADGE: 1 << 23,
|
2022-11-12 02:53:38 +00:00
|
|
|
ACTIVE: 1 << 24,
|
2022-03-24 10:55:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = ApplicationFlags;
|