From 1506ff0d2bf38cea590872fbc2a463096150baf6 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 6 Apr 2026 17:47:35 +0100 Subject: [PATCH] fix(OAuth2): include flags in current application result (#1610) Co-authored-by: Claude Opus 4.6 (1M context) --- deno/rest/v10/oauth2.ts | 2 +- deno/rest/v9/oauth2.ts | 2 +- rest/v10/oauth2.ts | 2 +- rest/v9/oauth2.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/oauth2.ts b/deno/rest/v10/oauth2.ts index e9582951..fa2d269a 100644 --- a/deno/rest/v10/oauth2.ts +++ b/deno/rest/v10/oauth2.ts @@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information} */ -export type RESTGetAPIOAuth2CurrentApplicationResult = Omit; +export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication; /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information} diff --git a/deno/rest/v9/oauth2.ts b/deno/rest/v9/oauth2.ts index 2a8f2d88..0fa7ece5 100644 --- a/deno/rest/v9/oauth2.ts +++ b/deno/rest/v9/oauth2.ts @@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information} */ -export type RESTGetAPIOAuth2CurrentApplicationResult = Omit; +export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication; /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information} diff --git a/rest/v10/oauth2.ts b/rest/v10/oauth2.ts index be7a6eef..92d966f7 100644 --- a/rest/v10/oauth2.ts +++ b/rest/v10/oauth2.ts @@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information} */ -export type RESTGetAPIOAuth2CurrentApplicationResult = Omit; +export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication; /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information} diff --git a/rest/v9/oauth2.ts b/rest/v9/oauth2.ts index 9949c818..b43a80f9 100644 --- a/rest/v9/oauth2.ts +++ b/rest/v9/oauth2.ts @@ -4,7 +4,7 @@ import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information} */ -export type RESTGetAPIOAuth2CurrentApplicationResult = Omit; +export type RESTGetAPIOAuth2CurrentApplicationResult = APIApplication; /** * @see {@link https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information}