mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: fix typings/docs for VoiceBroadcast (#4014)
This commit is contained in:
@@ -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
7
typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user