mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
typings(WebhookClient): client is not a client (#3838)
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user