From 311df79adc4c5dcede4282bc01cb12e3543152ce Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Wed, 9 Jun 2021 19:27:28 +0545 Subject: [PATCH] fix: collector handler should return void --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index 9601b2e..76e6820 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -172,7 +172,7 @@ export class Player extends EventEmitter { collector.on('collect', ({ content }) => { if (content === 'cancel') { collector.stop(); - return this.emit(PlayerEvents.SEARCH_CANCEL, message, query, tracks); + return void this.emit(PlayerEvents.SEARCH_CANCEL, message, query, tracks); } if (!isNaN(content) && parseInt(content) >= 1 && parseInt(content) <= tracks.length) {