mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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;
|
||||
}
|
||||
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user