misc: update ClientApplication for the current API (#2767)

* misc: Update ClientApplication for the current API

* cleanup: ClientApplication#fetchAssets, removed createAsset

* Major cleanup time

* Merge to kyra's branch

* docs: Updated typings

* fix: re-add ClientApplication#{cover,coverImage()}

* typings(ClientApplication): move coverImage declaration up
This commit is contained in:
Kyra
2018-08-22 08:10:55 +02:00
committed by SpaceEEC
parent 02f98cd7e6
commit 28d4f74b65
2 changed files with 21 additions and 65 deletions

7
typings/index.d.ts vendored
View File

@@ -228,10 +228,9 @@ declare module 'discord.js' {
export class ClientApplication extends Base {
constructor(client: Client, data: object);
public bot: object;
public botPublic: boolean;
public botRequireCodeGrant: boolean;
public cover: string;
public cover?: string;
public readonly createdAt: Date;
public readonly createdTimestamp: number;
public description: string;
@@ -239,12 +238,8 @@ declare module 'discord.js' {
public id: Snowflake;
public name: string;
public owner: User;
public redirectURIs: string[];
public rpcApplicationState: boolean;
public rpcOrigins: string[];
public secret: string;
public coverImage(options?: AvatarOptions): string;
public createAsset(name: string, data: Base64Resolvable, type: 'big' | 'small' | 'Big' | 'Small'): Promise<object>;
public fetchAssets(): Promise<ClientApplicationAsset>;
public iconURL(options?: AvatarOptions): string;
public toJSON(): object;