update DiscordApplication (#2203)

* update DiscordApplication

* revert re-order changes

* fix typo

Co-authored-by: ITOH <to@itoh.at>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
LTS20050703
2022-05-12 13:42:26 -04:00
committed by GitHub
co-authored by ITOH Skillz4Killz
parent 6a1016d81b
commit 8807310b85
+13
View File
@@ -259,6 +259,12 @@ export interface DiscordApplication {
guild_id?: string; guild_id?: string;
/** If this application is a game sold on Discord, this field will be the hash of the image on store embeds */ /** If this application is a game sold on Discord, this field will be the hash of the image on store embeds */
cover_image?: string; 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 */ /** 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) */ /** Whether this is a custom voice region (used for events/etc) */
custom: boolean; 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;
}