feat/40-reroll-on-disinterest #54
|
@ -32,7 +32,11 @@ export async function execute(event: GuildScheduledEvent) {
|
|||
return
|
||||
}
|
||||
|
||||
const message = `[Watchparty] https://discord.com/events/${event.guildId}/${event.id} \nHey <@&${config.bot.announcement_role}>, wir gucken ${event.name} ${createDateStringFromEvent(event, guildId, requestId)}`
|
||||
if (!event.scheduledStartAt) {
|
||||
logger.error('Event has no start date, bailing out')
|
||||
return
|
||||
}
|
||||
const message = `[Watchparty] https://discord.com/events/${event.guildId}/${event.id} \nHey <@&${config.bot.announcement_role}>, wir gucken ${event.name} ${createDateStringFromEvent(event.scheduledStartAt, guildId, requestId)}`
|
||||
|
||||
channel.send(message)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue