From e59f89392439c11cc3f41428774c899aaf75990a Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 24 Jun 2023 01:45:34 +0700 Subject: [PATCH] feat: new application flag --- src/util/ApplicationFlags.js | 2 ++ typings/index.d.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/ApplicationFlags.js b/src/util/ApplicationFlags.js index 2991e6f..bcb6f63 100644 --- a/src/util/ApplicationFlags.js +++ b/src/util/ApplicationFlags.js @@ -43,6 +43,7 @@ class ApplicationFlags extends BitField {} * * `EMBEDDED_FIRST_PARTY` * * `APPLICATION_COMMAND_BADGE` * * `ACTIVE` + * * `IFRAME_MODAL` * @type {Object} * @see {@link https://discord.com/developers/docs/resources/application#application-object-application-flags} * @see {@link https://flags.lewistehminerz.dev/} @@ -69,6 +70,7 @@ ApplicationFlags.FLAGS = { EMBEDDED_FIRST_PARTY: 1 << 20, APPLICATION_COMMAND_BADGE: 1 << 23, ACTIVE: 1 << 24, + IFRAME_MODAL: 1 << 26, }; module.exports = ApplicationFlags; diff --git a/typings/index.d.ts b/typings/index.d.ts index 9c38408..4dae466 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -5404,7 +5404,8 @@ export type ApplicationFlagsString = | 'GATEWAY_MESSAGE_CONTENT_LIMITED' | 'EMBEDDED_FIRST_PARTY' | 'APPLICATION_COMMAND_BADGE' - | 'ACTIVE'; + | 'ACTIVE' + | 'IFRAME_MODAL'; export interface ApplicationRoleConnectionMetadataEditOptions { name: string;