feat: app authorization links and tags for v13 (#7731)

This commit is contained in:
Superchupu
2022-04-14 12:47:11 +02:00
committed by GitHub
parent 6c5613255a
commit 9e4a900e6d
2 changed files with 44 additions and 0 deletions

8
typings/index.d.ts vendored
View File

@@ -634,6 +634,9 @@ export class ClientApplication extends Application {
public commands: ApplicationCommandManager;
public cover: string | null;
public flags: Readonly<ApplicationFlags>;
public tags: string[];
public installParams: ClientApplicationInstallParams | null;
public customInstallURL: string | null;
public owner: User | Team | null;
public readonly partial: boolean;
public rpcOrigins: string[];
@@ -3568,6 +3571,11 @@ export type AllowedThreadTypeForNewsChannel = 'GUILD_NEWS_THREAD' | 10;
export type AllowedThreadTypeForTextChannel = 'GUILD_PUBLIC_THREAD' | 'GUILD_PRIVATE_THREAD' | 11 | 12;
export interface ClientApplicationInstallParams {
scopes: InviteScope[];
permissions: Readonly<Permissions>;
}
export interface APIErrors {
UNKNOWN_ACCOUNT: 10001;
UNKNOWN_APPLICATION: 10002;