mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
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:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user