mirror of
https://github.com/danbulant/discord.js
synced 2026-06-04 23:31:04 +00:00
typings(WebhookClient): client is not a client (#3838)
This commit is contained in:
parent
653784b564
commit
6109669c97
1 changed files with 2 additions and 1 deletions
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue