typings(WebhookClient): client is not a Client (#3829)

* typings(WebhookClient): client is not a Client

* style: use tabs
This commit is contained in:
Sugden
2020-02-24 21:01:41 +00:00
committed by GitHub
parent 91a025caaa
commit 44ff67dc11

15
typings/index.d.ts vendored
View File

@@ -303,13 +303,6 @@ declare module 'discord.js' {
public toString(): string;
}
export interface ActivityOptions {
name?: string;
url?: string;
type?: ActivityType | number;
shardID?: number | number[];
}
export class ClientUser extends User {
public mfaEnabled: boolean;
public verified: boolean;
@@ -1630,6 +1623,7 @@ declare module 'discord.js' {
export class WebhookClient extends WebhookMixin(BaseClient) {
constructor(id: string, token: string, options?: ClientOptions);
public token: string;
public readonly client: this;
}
export class WebSocketManager extends EventEmitter {
@@ -1923,6 +1917,13 @@ declare module 'discord.js' {
| 'SYNC'
| 'PLAY';
interface ActivityOptions {
name?: string;
url?: string;
type?: ActivityType | number;
shardID?: number | number[];
}
type ActivityType = 'PLAYING'
| 'STREAMING'
| 'LISTENING'