remove typecast to unknown

Somehow I thought it was necessary because the compiler said it at some point
This commit is contained in:
Sammy 2023-06-11 15:42:31 +02:00
parent 550aa53188
commit 117ff23a0c

View File

@ -29,7 +29,7 @@ export default new Command({
export async function closePoll(guild: Guild, requestId: string) {
const guildId = guild.id
logger.info("stopping poll", { guildId: guildId, requestId })
const channels: TextChannel[] = <TextChannel[]><unknown>(await guild.channels.fetch())
const channels: TextChannel[] = <TextChannel[]>(await guild.channels.fetch())
?.filter(channel => channel!.id === config.bot.announcement_channel_id)
.map((value, _) => value)