Skip to content

Commit

Permalink
chore: fix typings/docs for VoiceBroadcast (#4014)
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Apr 3, 2020
1 parent 849c632 commit 0e44ecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/client/voice/VoiceBroadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const { Events } = require('../../util/Constants');
* }
* ```
* @implements {PlayInterface}
* @extends {EventEmitter}
*/
class VoiceBroadcast extends EventEmitter {
constructor(client) {
Expand Down
7 changes: 2 additions & 5 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0e44ecd

Please sign in to comment.