From d2df1ca5ee0bd4a9f3bf4f929327f0d002d5e6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Magalh=C3=A3es?= Date: Tue, 8 Dec 2020 21:59:42 +0100 Subject: [PATCH] fix(types): Fix typo in setBitrate method. (#48) Fixes a typo in the type definitions. This is probably a big deal for typescript users. --- typings/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index ef8e1b7..25f68fd 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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; } }