Skip to content

Commit

Permalink
fix(StreamDispatcher): correct property types (#4059)
Browse files Browse the repository at this point in the history
* typings(StreamDispatcher): correct property types

* typings(StreamDispatcher): order methods alphabetically
  • Loading branch information
Jyguy committed Apr 12, 2020
1 parent e5fac8c commit 9ba4eff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1366,20 +1366,20 @@ declare module 'discord.js' {

class StreamDispatcher extends VolumeMixin(Writable) {
constructor(player: object, options?: StreamOptions, streams?: object);
public player: object;
public pausedSince: number;
public readonly bitrateEditable: boolean;
public broadcast: VoiceBroadcast | null;
public readonly paused: boolean;
public readonly pausedTime: boolean | null;
public pausedSince: number | null;
public readonly pausedTime: number;
public player: object;
public readonly streamTime: number;
public readonly totalStreamTime: number;
public readonly bitrateEditable: boolean;

public setBitrate(value: number | 'auto'): boolean;
public setPLP(value: number): boolean;
public setFEC(enabled: boolean): boolean;
public pause(silence?: boolean): void;
public resume(): void;
public setBitrate(value: number | 'auto'): boolean;
public setFEC(enabled: boolean): boolean;
public setPLP(value: number): boolean;

public on(event: 'close' | 'drain' | 'finish' | 'start', listener: () => void): this;
public on(event: 'debug', listener: (info: string) => void): this;
Expand Down

0 comments on commit 9ba4eff

Please sign in to comment.