From 550aa53188b99adb5e9910ae7feebc13dbd0e9d6 Mon Sep 17 00:00:00 2001 From: Sammy Date: Sun, 11 Jun 2023 09:12:14 +0200 Subject: [PATCH] make closepoll return when no channel found --- server/commands/closepoll.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/commands/closepoll.ts b/server/commands/closepoll.ts index 66c3beb..fa3be24 100644 --- a/server/commands/closepoll.ts +++ b/server/commands/closepoll.ts @@ -35,6 +35,7 @@ export async function closePoll(guild: Guild, requestId: string) { if(!channels || channels.length != 1) { logger.error(`Could not find announcement channel. Found ${channels}`) + return } const announcementChannel = channels[0]