fix(APIApplication): flags should be omitted in REST, not optional everywhere (#57)

This commit is contained in:
Jan
2020-12-26 18:22:41 +01:00
committed by GitHub
parent 15892ec870
commit 664ad800cc
2 changed files with 2 additions and 2 deletions

View File

@@ -24,5 +24,5 @@ export interface APIApplication {
primary_sku_id?: string;
slug?: string;
cover_image?: string;
flags?: number;
flags: number;
}

View File

@@ -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<APIApplication, 'flags'>;
/**
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant