Add automatic creation of vote message with random movies #16

Merged
kenobi merged 11 commits from feat/voting into master 2023-06-12 21:00:17 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 117ff23a0c - Show all commits

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 })
kenobi marked this conversation as resolved
Review

As long as the name is identical you can just use
{guild,requestId}
This gets translated to {guildId:guildId, requestId:requestId}

As long as the name is identical you can just use `{guild,requestId}` This gets translated to `{guildId:guildId, requestId:requestId}`
Review

Fixed on all occasions I found

Fixed on all occasions I found
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)