Skip to content

Commit 44ff67d

Browse files
authored
typings(WebhookClient): client is not a Client (#3829)
* typings(WebhookClient): client is not a Client * style: use tabs
1 parent 91a025c commit 44ff67d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

typings/index.d.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,6 @@ declare module 'discord.js' {
303303
public toString(): string;
304304
}
305305

306-
export interface ActivityOptions {
307-
name?: string;
308-
url?: string;
309-
type?: ActivityType | number;
310-
shardID?: number | number[];
311-
}
312-
313306
export class ClientUser extends User {
314307
public mfaEnabled: boolean;
315308
public verified: boolean;
@@ -1630,6 +1623,7 @@ declare module 'discord.js' {
16301623
export class WebhookClient extends WebhookMixin(BaseClient) {
16311624
constructor(id: string, token: string, options?: ClientOptions);
16321625
public token: string;
1626+
public readonly client: this;
16331627
}
16341628

16351629
export class WebSocketManager extends EventEmitter {
@@ -1923,6 +1917,13 @@ declare module 'discord.js' {
19231917
| 'SYNC'
19241918
| 'PLAY';
19251919

1920+
interface ActivityOptions {
1921+
name?: string;
1922+
url?: string;
1923+
type?: ActivityType | number;
1924+
shardID?: number | number[];
1925+
}
1926+
19261927
type ActivityType = 'PLAYING'
19271928
| 'STREAMING'
19281929
| 'LISTENING'

0 commit comments

Comments
 (0)