Skip to content

Commit

Permalink
feat(APIApplication): app authorization links and tags (#239)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
  • Loading branch information
suneettipirneni and ImRodry committed Mar 29, 2022
1 parent c23f2ac commit 93eab11
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 6 deletions.
20 changes: 19 additions & 1 deletion deno/payloads/v10/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals.ts';
import type { Permissions, Snowflake } from '../../globals.ts';
import type { OAuth2Scopes } from './oauth2.ts';
import type { APITeam } from './teams.ts';
import type { APIUser } from './user.ts';

Expand Down Expand Up @@ -93,6 +94,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down
20 changes: 19 additions & 1 deletion deno/payloads/v8/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals.ts';
import type { Permissions, Snowflake } from '../../globals.ts';
import type { OAuth2Scopes } from './oauth2.ts';
import type { APITeam } from './teams.ts';
import type { APIUser } from './user.ts';

Expand Down Expand Up @@ -94,6 +95,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down
20 changes: 19 additions & 1 deletion deno/payloads/v9/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals.ts';
import type { Permissions, Snowflake } from '../../globals.ts';
import type { OAuth2Scopes } from './oauth2.ts';
import type { APITeam } from './teams.ts';
import type { APIUser } from './user.ts';

Expand Down Expand Up @@ -93,6 +94,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down
20 changes: 19 additions & 1 deletion payloads/v10/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals';
import type { Permissions, Snowflake } from '../../globals';
import type { OAuth2Scopes } from './oauth2';
import type { APITeam } from './teams';
import type { APIUser } from './user';

Expand Down Expand Up @@ -93,6 +94,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down
20 changes: 19 additions & 1 deletion payloads/v8/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals';
import type { Permissions, Snowflake } from '../../globals';
import type { OAuth2Scopes } from './oauth2';
import type { APITeam } from './teams';
import type { APIUser } from './user';

Expand Down Expand Up @@ -94,6 +95,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down
20 changes: 19 additions & 1 deletion payloads/v9/application.ts
Expand Up @@ -2,7 +2,8 @@
* Types extracted from https://discord.com/developers/docs/resources/application
*/

import type { Snowflake } from '../../globals';
import type { Permissions, Snowflake } from '../../globals';
import type { OAuth2Scopes } from './oauth2';
import type { APITeam } from './teams';
import type { APIUser } from './user';

Expand Down Expand Up @@ -93,6 +94,23 @@ export interface APIApplication {
* See https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
flags: ApplicationFlags;
/**
* Up to 5 tags describing the content and functionality of the application
*/
tags?: [string, string?, string?, string?, string?];
/**
* Settings for the application's default in-app authorization link, if enabled
*/
install_params?: APIApplicationInstallParams;
/**
* The application's default custom authorization link, if enabled
*/
custom_install_url?: string;
}

export interface APIApplicationInstallParams {
scopes: OAuth2Scopes[];
permissions: Permissions;
}

/**
Expand Down

0 comments on commit 93eab11

Please sign in to comment.