Skip to content

Commit

Permalink
fix(types): Fix typo in setBitrate method. (#48)
Browse files Browse the repository at this point in the history
Fixes a typo in the type definitions. This is probably a big deal for typescript users.
  • Loading branch information
armand1m authored Dec 8, 2020
1 parent abe081b commit d2df1ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
declare module '@discordjs/opus' {
export class OpusEncoder {
public constructor(rate: number, channels: number);

public encode(buf: Buffer): Buffer;
public decode(buf: Buffer): Buffer;
public applyEncoderCTL(ctl: number, value: number): void;
public applyDecoderCTL(ctl: number, value: number): void;
public setBirate(bitrate: number): void;
public setBitrate(bitrate: number): void;
public getBitrate(): number;
}
}

0 comments on commit d2df1ca

Please sign in to comment.