From 8807310b85993af9236a0a2172d2a91369bc9f2b Mon Sep 17 00:00:00 2001 From: LTS20050703 <87189679+lts20050703@users.noreply.github.com> Date: Fri, 13 May 2022 00:42:26 +0700 Subject: [PATCH] update DiscordApplication (#2203) * update DiscordApplication * revert re-order changes * fix typo Co-authored-by: ITOH Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> --- types/discord.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/discord.ts b/types/discord.ts index efaa94da8..cc96b7cca 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -259,6 +259,12 @@ export interface DiscordApplication { guild_id?: string; /** If this application is a game sold on Discord, this field will be the hash of the image on store embeds */ cover_image?: string; + /** up to 5 tags describing the content and functionality of the application */ + tags?: string[]; + /** settings for the application's default in-app authorization link, if enabled */ + install_params?: DiscordInstallParams; + /** the application's default custom authorization link, if enabled */ + custom_install_url?: string; } /** https://discord.com/developers/docs/topics/teams#data-models-team-object */ @@ -2218,3 +2224,10 @@ export interface DiscordVoiceRegion { /** Whether this is a custom voice region (used for events/etc) */ custom: boolean; } + +export interface DiscordInstallParams { + /** he scopes to add the application to the server with */ + scopes: string[]; + /** the permissions to request for the bot role */ + permissions: string; +}