mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +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 avatar: string;
|
||||||
public avatarURL(options?: ImageURLOptions): string | null;
|
public avatarURL(options?: ImageURLOptions): string | null;
|
||||||
public channelID: Snowflake;
|
public channelID: Snowflake;
|
||||||
|
public client: Client;
|
||||||
public guildID: Snowflake;
|
public guildID: Snowflake;
|
||||||
public name: string;
|
public name: string;
|
||||||
public owner: User | object | null;
|
public owner: User | object | null;
|
||||||
@@ -1623,6 +1624,7 @@ declare module 'discord.js' {
|
|||||||
|
|
||||||
export class WebhookClient extends WebhookMixin(BaseClient) {
|
export class WebhookClient extends WebhookMixin(BaseClient) {
|
||||||
constructor(id: string, token: string, options?: ClientOptions);
|
constructor(id: string, token: string, options?: ClientOptions);
|
||||||
|
public client: this;
|
||||||
public token: string;
|
public token: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1892,7 +1894,6 @@ declare module 'discord.js' {
|
|||||||
function WebhookMixin<T>(Base?: Constructable<T>): Constructable<T & WebhookFields>;
|
function WebhookMixin<T>(Base?: Constructable<T>): Constructable<T & WebhookFields>;
|
||||||
|
|
||||||
interface WebhookFields {
|
interface WebhookFields {
|
||||||
readonly client: Client;
|
|
||||||
id: Snowflake;
|
id: Snowflake;
|
||||||
readonly createdAt: Date;
|
readonly createdAt: Date;
|
||||||
readonly createdTimestamp: number;
|
readonly createdTimestamp: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user