mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
typings(WebhookClient): client is not a Client (#3829)
* typings(WebhookClient): client is not a Client * style: use tabs
This commit is contained in:
15
typings/index.d.ts
vendored
15
typings/index.d.ts
vendored
@@ -303,13 +303,6 @@ declare module 'discord.js' {
|
|||||||
public toString(): string;
|
public toString(): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ActivityOptions {
|
|
||||||
name?: string;
|
|
||||||
url?: string;
|
|
||||||
type?: ActivityType | number;
|
|
||||||
shardID?: number | number[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ClientUser extends User {
|
export class ClientUser extends User {
|
||||||
public mfaEnabled: boolean;
|
public mfaEnabled: boolean;
|
||||||
public verified: boolean;
|
public verified: boolean;
|
||||||
@@ -1630,6 +1623,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 token: string;
|
public token: string;
|
||||||
|
public readonly client: this;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WebSocketManager extends EventEmitter {
|
export class WebSocketManager extends EventEmitter {
|
||||||
@@ -1923,6 +1917,13 @@ declare module 'discord.js' {
|
|||||||
| 'SYNC'
|
| 'SYNC'
|
||||||
| 'PLAY';
|
| 'PLAY';
|
||||||
|
|
||||||
|
interface ActivityOptions {
|
||||||
|
name?: string;
|
||||||
|
url?: string;
|
||||||
|
type?: ActivityType | number;
|
||||||
|
shardID?: number | number[];
|
||||||
|
}
|
||||||
|
|
||||||
type ActivityType = 'PLAYING'
|
type ActivityType = 'PLAYING'
|
||||||
| 'STREAMING'
|
| 'STREAMING'
|
||||||
| 'LISTENING'
|
| 'LISTENING'
|
||||||
|
|||||||
Reference in New Issue
Block a user