chore: fix typings/docs for VoiceBroadcast (#4014)

This commit is contained in:
Amish Shah
2020-04-03 11:19:24 +01:00
parent 849c6324d3
commit 0e44ecd420
2 changed files with 3 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ const { Events } = require('../../util/Constants');
* }
* ```
* @implements {PlayInterface}
* @extends {EventEmitter}
*/
class VoiceBroadcast extends EventEmitter {
constructor(client) {

7
typings/index.d.ts vendored
View File

@@ -1535,19 +1535,16 @@ declare module 'discord.js' {
constructor(client: Client);
public client: Client;
public subscribers: StreamDispatcher[];
public readonly dispatcher: BroadcastDispatcher;
public readonly dispatcher?: BroadcastDispatcher;
public play(input: string | Readable, options?: StreamOptions): BroadcastDispatcher;
public end(): void;
public on(event: 'end', listener: () => void): this;
public on(event: 'error', listener: (error: Error) => void): this;
public on(event: 'subscribe' | 'unsubscribe', listener: (dispatcher: StreamDispatcher) => void): this;
public on(event: 'warn', listener: (warning: string | Error) => void): this;
public on(event: string, listener: (...args: any[]) => void): this;
public once(event: 'end', listener: () => void): this;
public once(event: 'error', listener: (error: Error) => void): this;
public once(event: 'subscribe' | 'unsubscribe', listener: (dispatcher: StreamDispatcher) => void): this;
public once(event: 'warn', listener: (warning: string | Error) => void): this;
public once(event: string, listener: (...args: any[]) => void): this;
}