2022-03-05 01:24:05 +01:00
|
|
|
import { GuildScheduledEvent } from 'discord.js'
|
2022-04-23 21:32:32 +02:00
|
|
|
import { validateRepetitionStringAndSendMessageOnFail } from '../handler/repeatingEvents/helper'
|
2022-03-05 01:24:05 +01:00
|
|
|
export const name = 'guildScheduledEventCreate'
|
2022-04-23 21:32:32 +02:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|