make closepoll return when no channel found

This commit is contained in:
Sammy 2023-06-11 09:12:14 +02:00
parent 1ee55f995c
commit 550aa53188

View File

@ -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]