mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-01 16:30:10 +00:00
fix(APIApplication): flags should be omitted in REST, not optional everywhere (#57)
This commit is contained in:
@@ -24,5 +24,5 @@ export interface APIApplication {
|
||||
primary_sku_id?: string;
|
||||
slug?: string;
|
||||
cover_image?: string;
|
||||
flags?: number;
|
||||
flags: number;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user