typings(WebhookClient): client is not a client (#3838)

This commit is contained in:
Sugden
2020-02-28 16:41:12 +00:00
committed by GitHub
parent 653784b564
commit 6109669c97

3
typings/index.d.ts vendored
View File

@@ -1614,6 +1614,7 @@ declare module 'discord.js' {
public avatar: string;
public avatarURL(options?: ImageURLOptions): string | null;
public channelID: Snowflake;
public client: Client;
public guildID: Snowflake;
public name: string;
public owner: User | object | null;
@@ -1623,6 +1624,7 @@ declare module 'discord.js' {
export class WebhookClient extends WebhookMixin(BaseClient) {
constructor(id: string, token: string, options?: ClientOptions);
public client: this;
public token: string;
}
@@ -1892,7 +1894,6 @@ declare module 'discord.js' {
function WebhookMixin<T>(Base?: Constructable<T>): Constructable<T & WebhookFields>;
interface WebhookFields {
readonly client: Client;
id: Snowflake;
readonly createdAt: Date;
readonly createdTimestamp: number;