Fix issues introduced in new Typescript version.

This commit is contained in:
Paul
2021-08-30 16:45:23 +01:00
parent de0024988b
commit 6d59c441d6
5 changed files with 163 additions and 155 deletions

View File

@@ -326,7 +326,8 @@ export default class VoiceClient extends EventEmitter<VoiceEvents> {
try {
await this.signaling.stopProduce(type);
} catch (error) {
if (error.error === WSErrorCode.ProducerNotFound) return;
// eslint-disable-next-line
if ((error as any).error === WSErrorCode.ProducerNotFound) return;
throw error;
}
}