From 664ad800ccdfb84cc1547dd151c0f6e16157e04b Mon Sep 17 00:00:00 2001 From: Jan <66554238+Vaporox@users.noreply.github.com> Date: Sat, 26 Dec 2020 18:22:41 +0100 Subject: [PATCH] fix(APIApplication): flags should be omitted in REST, not optional everywhere (#57) --- v8/payloads/oauth2.ts | 2 +- v8/rest/oauth2.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v8/payloads/oauth2.ts b/v8/payloads/oauth2.ts index 3c8b09bb..a92233a1 100644 --- a/v8/payloads/oauth2.ts +++ b/v8/payloads/oauth2.ts @@ -24,5 +24,5 @@ export interface APIApplication { primary_sku_id?: string; slug?: string; cover_image?: string; - flags?: number; + flags: number; } diff --git a/v8/rest/oauth2.ts b/v8/rest/oauth2.ts index fc0b1316..9972dfac 100644 --- a/v8/rest/oauth2.ts +++ b/v8/rest/oauth2.ts @@ -3,7 +3,7 @@ import type { APIApplication, APIGuild, APIWebhook } from '../payloads'; /** * https://discord.com/developers/docs/topics/oauth2#get-current-application-information */ -export type RESTGetAPIOauth2CurrentApplicationResult = APIApplication; +export type RESTGetAPIOauth2CurrentApplicationResult = Omit; /** * https://discord.com/developers/docs/topics/oauth2#authorization-code-grant