Add automatic creation of vote message with random movies #16
|
@ -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 })
|
||||
kenobi marked this conversation as resolved
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
As long as the name is identical you can just use
{guild,requestId}
This gets translated to
{guildId:guildId, requestId:requestId}
Fixed on all occasions I found