make closepoll return when no channel found
This commit is contained in:
parent
1ee55f995c
commit
550aa53188
@ -35,6 +35,7 @@ export async function closePoll(guild: Guild, requestId: string) {
|
|||||||
|
|
||||||
if(!channels || channels.length != 1) {
|
if(!channels || channels.length != 1) {
|
||||||
logger.error(`Could not find announcement channel. Found ${channels}`)
|
logger.error(`Could not find announcement channel. Found ${channels}`)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const announcementChannel = channels[0]
|
const announcementChannel = channels[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user