node-event-bot/server/events/guildScheduledEventCreate.ts

12 lines
464 B
TypeScript
Raw Normal View History

2022-03-05 01:24:05 +01:00
import { GuildScheduledEvent } from 'discord.js'
import { validateRepetitionStringAndSendMessageOnFail } from '../handler/repeatingEvents/helper'
2022-03-05 01:24:05 +01:00
export const name = 'guildScheduledEventCreate'
export async function execute(guildScheduledEvent: GuildScheduledEvent) {
try {
console.log(`${JSON.stringify(guildScheduledEvent)} has been created.`)
validateRepetitionStringAndSendMessageOnFail(guildScheduledEvent)
} catch (error) {
2022-03-05 01:24:05 +01:00
console.error(error)
}
}