From edd30651b4cb3c08967c9e29266d38919eb02639 Mon Sep 17 00:00:00 2001 From: Nik Sudan Date: Mon, 3 Aug 2020 01:26:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Don't=20send=20the=20message=20i?= =?UTF-8?q?n=20the=20source=20channel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/bot.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/bot.ts b/src/lib/bot.ts index 7c5f79c..464acca 100644 --- a/src/lib/bot.ts +++ b/src/lib/bot.ts @@ -122,9 +122,7 @@ export default class Bot { * Find a channel by ID */ private async findChannel(id: string) { - return (await this.client.channels.fetch( - process.env.MUSIC_SOURCE_CHANNEL_ID, - )) as TextChannel; + return (await this.client.channels.fetch(id)) as TextChannel; } /**